dotfiles

Linux and macOS dotfiles
git clone https://github.com/michaelneuper/dotfiles.git
README | Files | Log | Refs

commit ba5186e343a665a9e92b49c3fb4d70d3f6d3bf4f
parent c61fb5493b2eaf3c6cad34bc601b538196304714
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date:   Sun, 21 May 2023 13:37:14 +0200

Change doom and emacs directories

Diffstat:
M.config/doom/config.el | 2+-
A.config/emacs/.dir-locals.el | 3+++
A.config/emacs/.doomrc | 51+++++++++++++++++++++++++++++++++++++++++++++++++++
A.config/emacs/.github/CODEOWNERS | 165+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.config/emacs/.github/ISSUE_TEMPLATE/bug_report.yml | 115+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.config/emacs/.github/ISSUE_TEMPLATE/config.yml | 14++++++++++++++
A.config/emacs/.github/workflows/add-to-project.yml | 8++++++++
A.config/emacs/.github/workflows/lint-commits.yml | 5+++++
A.config/emacs/.github/workflows/triage.yml | 7+++++++
A.config/emacs/.gitignore | 53+++++++++++++++++++++++++++++++++++++++++++++++++++++
M.config/fish/config.fish | 2+-
11 files changed, 423 insertions(+), 2 deletions(-)

diff --git a/.config/doom/config.el b/.config/doom/config.el @@ -61,7 +61,7 @@ (setq doom-theme 'doom-one) ;; Custom banner -(setq fancy-splash-image "~/.doom.d/doom-banners/splashes/emacs/emacs-e-logo.png") +(setq fancy-splash-image "~/.config/doom/doom-banners/splashes/emacs/emacs-e-logo.png") ;; This determines the style of line numbers in effect. If set to `nil', line ;; numbers are disabled. For relative line numbers, set this to `relative'. diff --git a/.config/emacs/.dir-locals.el b/.config/emacs/.dir-locals.el @@ -0,0 +1,3 @@ +((nil (git-commit-major-mode . git-commit-elisp-text-mode) + (fill-column . 80)) + (org-mode (mode . doom-docs-org))) diff --git a/.config/emacs/.doomrc b/.config/emacs/.doomrc @@ -0,0 +1,51 @@ +;;; .doomrc --- doom runtime config -*- mode: emacs-lisp; lexical-binding: t; -*- +;;; Commentary: +;;; Code: +(require 'doom) ; be silent, byte-compiler + +(after! doom-cli-ci + ;;; Commit linter types + (add-to-list 'doom-ci-commit-types 'module) + (add-to-list 'doom-ci-commit-scopeless-types 'module) + + ;;; Commit linter scopes + (add-to-list 'doom-ci-commit-scopes "cli") + (add-to-list 'doom-ci-commit-scopes "lib") + (add-to-list 'doom-ci-commit-scopes "docs") + (add-to-list 'doom-ci-commit-scopes '(docs "install" ci-check-docs-scope)) + (add-to-list 'doom-ci-commit-scopes #'ci-check-module-scope) + ;; DEPRECATED Will be removed once modules live in their own repo + (add-to-list 'doom-ci-commit-scopes '(release "modules"))) + +(after! doom-cli-make + ;;; Codeowners + (dolist (path (doom-module-load-path (list doom-modules-dir))) + ;; I will be the default owner for everything in the repo unless a later + ;; match takes precedence. + (add-to-list 'doom-make-codeowners "# The default owner(s) unless another takes precedence") + (add-to-list 'doom-make-codeowners '("*" . "@doomemacs/maintainers")) + ;; Module maintainers (see https://git.doomemacs.org/teams) + (save-match-data + (add-to-list 'doom-make-codeowners "# Module maintainers") + (when (string-match "/modules/\\([^/]+\\)/\\([^/]+\\)/$" path) + (push (cons (substring (match-string 0 path) 1) + (format "@doomemacs/%s-%s" + (match-string 1 path) + (match-string 2 path))) + doom-make-codeowners))))) + +;;; Helpers +(defun ci-check-module-scope (scope _plist) + "Only allow :CATEGORY or MODULE scopes if they actually exist." + (doom-glob (dir!) "modules" (if (string-prefix-p ":" scope) + (format "%s" (substring scope 1)) + (format "*/%s" scope)))) + +(defun ci-check-docs-scope (scope _plist) + "Allow any filename in docs/* as a scope for docs commits." + (member + scope (doom-files-in (doom-path (dir!) "../docs") + :match "\\.org$" + :map #'file-name-base))) + +;;; .doomrc ends here diff --git a/.config/emacs/.github/CODEOWNERS b/.config/emacs/.github/CODEOWNERS @@ -0,0 +1,164 @@ +# -*- mode: conf -*- +# Each line is a file pattern followed by one or more owners. +# This file was generated by 'doom make codeowners', do not edit it by hand. + +# The default owner(s) unless another takes precedence +* @doomemacs/maintainers + +# Module maintainers +modules/app/calendar/ @doomemacs/app-calendar +modules/app/emms/ @doomemacs/app-emms +modules/app/everywhere/ @doomemacs/app-everywhere +modules/app/irc/ @doomemacs/app-irc +modules/app/rss/ @doomemacs/app-rss +modules/app/twitter/ @doomemacs/app-twitter +modules/checkers/grammar/ @doomemacs/checkers-grammar +modules/checkers/spell/ @doomemacs/checkers-spell +modules/checkers/syntax/ @doomemacs/checkers-syntax +modules/completion/company/ @doomemacs/completion-company +modules/completion/helm/ @doomemacs/completion-helm +modules/completion/ido/ @doomemacs/completion-ido +modules/completion/ivy/ @doomemacs/completion-ivy +modules/completion/vertico/ @doomemacs/completion-vertico +modules/config/default/ @doomemacs/config-default +modules/config/literate/ @doomemacs/config-literate +modules/editor/evil/ @doomemacs/editor-evil +modules/editor/file-templates/ @doomemacs/editor-file-templates +modules/editor/fold/ @doomemacs/editor-fold +modules/editor/format/ @doomemacs/editor-format +modules/editor/god/ @doomemacs/editor-god +modules/editor/lispy/ @doomemacs/editor-lispy +modules/editor/multiple-cursors/ @doomemacs/editor-multiple-cursors +modules/editor/objed/ @doomemacs/editor-objed +modules/editor/parinfer/ @doomemacs/editor-parinfer +modules/editor/rotate-text/ @doomemacs/editor-rotate-text +modules/editor/snippets/ @doomemacs/editor-snippets +modules/editor/word-wrap/ @doomemacs/editor-word-wrap +modules/emacs/dired/ @doomemacs/emacs-dired +modules/emacs/electric/ @doomemacs/emacs-electric +modules/emacs/ibuffer/ @doomemacs/emacs-ibuffer +modules/emacs/tramp/ @doomemacs/emacs-tramp +modules/emacs/undo/ @doomemacs/emacs-undo +modules/emacs/vc/ @doomemacs/emacs-vc +modules/email/mu4e/ @doomemacs/email-mu4e +modules/email/notmuch/ @doomemacs/email-notmuch +modules/email/wanderlust/ @doomemacs/email-wanderlust +modules/input/bidi/ @doomemacs/input-bidi +modules/input/chinese/ @doomemacs/input-chinese +modules/input/japanese/ @doomemacs/input-japanese +modules/input/layout/ @doomemacs/input-layout +modules/lang/agda/ @doomemacs/lang-agda +modules/lang/beancount/ @doomemacs/lang-beancount +modules/lang/cc/ @doomemacs/lang-cc +modules/lang/clojure/ @doomemacs/lang-clojure +modules/lang/common-lisp/ @doomemacs/lang-common-lisp +modules/lang/coq/ @doomemacs/lang-coq +modules/lang/crystal/ @doomemacs/lang-crystal +modules/lang/csharp/ @doomemacs/lang-csharp +modules/lang/dart/ @doomemacs/lang-dart +modules/lang/data/ @doomemacs/lang-data +modules/lang/dhall/ @doomemacs/lang-dhall +modules/lang/elixir/ @doomemacs/lang-elixir +modules/lang/elm/ @doomemacs/lang-elm +modules/lang/emacs-lisp/ @doomemacs/lang-emacs-lisp +modules/lang/erlang/ @doomemacs/lang-erlang +modules/lang/ess/ @doomemacs/lang-ess +modules/lang/factor/ @doomemacs/lang-factor +modules/lang/faust/ @doomemacs/lang-faust +modules/lang/fortran/ @doomemacs/lang-fortran +modules/lang/fsharp/ @doomemacs/lang-fsharp +modules/lang/fstar/ @doomemacs/lang-fstar +modules/lang/gdscript/ @doomemacs/lang-gdscript +modules/lang/go/ @doomemacs/lang-go +modules/lang/graphql/ @doomemacs/lang-graphql +modules/lang/haskell/ @doomemacs/lang-haskell +modules/lang/hy/ @doomemacs/lang-hy +modules/lang/idris/ @doomemacs/lang-idris +modules/lang/java/ @doomemacs/lang-java +modules/lang/javascript/ @doomemacs/lang-javascript +modules/lang/json/ @doomemacs/lang-json +modules/lang/julia/ @doomemacs/lang-julia +modules/lang/kotlin/ @doomemacs/lang-kotlin +modules/lang/latex/ @doomemacs/lang-latex +modules/lang/lean/ @doomemacs/lang-lean +modules/lang/ledger/ @doomemacs/lang-ledger +modules/lang/lua/ @doomemacs/lang-lua +modules/lang/markdown/ @doomemacs/lang-markdown +modules/lang/nim/ @doomemacs/lang-nim +modules/lang/nix/ @doomemacs/lang-nix +modules/lang/ocaml/ @doomemacs/lang-ocaml +modules/lang/org/ @doomemacs/lang-org +modules/lang/php/ @doomemacs/lang-php +modules/lang/plantuml/ @doomemacs/lang-plantuml +modules/lang/purescript/ @doomemacs/lang-purescript +modules/lang/python/ @doomemacs/lang-python +modules/lang/qt/ @doomemacs/lang-qt +modules/lang/racket/ @doomemacs/lang-racket +modules/lang/raku/ @doomemacs/lang-raku +modules/lang/rest/ @doomemacs/lang-rest +modules/lang/rst/ @doomemacs/lang-rst +modules/lang/ruby/ @doomemacs/lang-ruby +modules/lang/rust/ @doomemacs/lang-rust +modules/lang/scala/ @doomemacs/lang-scala +modules/lang/scheme/ @doomemacs/lang-scheme +modules/lang/sh/ @doomemacs/lang-sh +modules/lang/sml/ @doomemacs/lang-sml +modules/lang/solidity/ @doomemacs/lang-solidity +modules/lang/swift/ @doomemacs/lang-swift +modules/lang/terra/ @doomemacs/lang-terra +modules/lang/web/ @doomemacs/lang-web +modules/lang/yaml/ @doomemacs/lang-yaml +modules/lang/zig/ @doomemacs/lang-zig +modules/os/macos/ @doomemacs/os-macos +modules/os/tty/ @doomemacs/os-tty +modules/term/eshell/ @doomemacs/term-eshell +modules/term/shell/ @doomemacs/term-shell +modules/term/term/ @doomemacs/term-term +modules/term/vterm/ @doomemacs/term-vterm +modules/tools/ansible/ @doomemacs/tools-ansible +modules/tools/biblio/ @doomemacs/tools-biblio +modules/tools/debugger/ @doomemacs/tools-debugger +modules/tools/direnv/ @doomemacs/tools-direnv +modules/tools/docker/ @doomemacs/tools-docker +modules/tools/editorconfig/ @doomemacs/tools-editorconfig +modules/tools/ein/ @doomemacs/tools-ein +modules/tools/eval/ @doomemacs/tools-eval +modules/tools/gist/ @doomemacs/tools-gist +modules/tools/lookup/ @doomemacs/tools-lookup +modules/tools/lsp/ @doomemacs/tools-lsp +modules/tools/magit/ @doomemacs/tools-magit +modules/tools/make/ @doomemacs/tools-make +modules/tools/pass/ @doomemacs/tools-pass +modules/tools/pdf/ @doomemacs/tools-pdf +modules/tools/prodigy/ @doomemacs/tools-prodigy +modules/tools/rgb/ @doomemacs/tools-rgb +modules/tools/taskrunner/ @doomemacs/tools-taskrunner +modules/tools/terraform/ @doomemacs/tools-terraform +modules/tools/tmux/ @doomemacs/tools-tmux +modules/tools/tree-sitter/ @doomemacs/tools-tree-sitter +modules/tools/upload/ @doomemacs/tools-upload +modules/ui/deft/ @doomemacs/ui-deft +modules/ui/doom/ @doomemacs/ui-doom +modules/ui/doom-dashboard/ @doomemacs/ui-doom-dashboard +modules/ui/doom-quit/ @doomemacs/ui-doom-quit +modules/ui/emoji/ @doomemacs/ui-emoji +modules/ui/hl-todo/ @doomemacs/ui-hl-todo +modules/ui/hydra/ @doomemacs/ui-hydra +modules/ui/indent-guides/ @doomemacs/ui-indent-guides +modules/ui/ligatures/ @doomemacs/ui-ligatures +modules/ui/minimap/ @doomemacs/ui-minimap +modules/ui/modeline/ @doomemacs/ui-modeline +modules/ui/nav-flash/ @doomemacs/ui-nav-flash +modules/ui/neotree/ @doomemacs/ui-neotree +modules/ui/ophints/ @doomemacs/ui-ophints +modules/ui/popup/ @doomemacs/ui-popup +modules/ui/tabs/ @doomemacs/ui-tabs +modules/ui/treemacs/ @doomemacs/ui-treemacs +modules/ui/unicode/ @doomemacs/ui-unicode +modules/ui/vc-gutter/ @doomemacs/ui-vc-gutter +modules/ui/vi-tilde-fringe/ @doomemacs/ui-vi-tilde-fringe +modules/ui/window-select/ @doomemacs/ui-window-select +modules/ui/workspaces/ @doomemacs/ui-workspaces +modules/ui/zen/ @doomemacs/ui-zen + +# End of CODEOWNERS +\ No newline at end of file diff --git a/.config/emacs/.github/ISSUE_TEMPLATE/bug_report.yml b/.config/emacs/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,115 @@ +--- +name: 📝 Bug Report +description: Report something that isn't working as intended +labels: ["is:bug", "needs-triage"] +body: +- type: markdown + attributes: + value: | + > :warning: Our issue tracker is only for bug reports, not feature requests, or general user support. Submit those to [our Discourse](https://discourse.doomemacs.org) or [our Discord server](https://doomemacs.org/discord) instead. + + **Before you fill out this bug report,** please ensure that you've exhausted all other options. Emacs' complexity tends to swamp us with false positive and vague issues. We desperately need your help to meet us halfway by following this checklist: +- type: checkboxes + attributes: + label: "I confirm that..." + options: + - label: > + I have searched the [issue + tracker](https://github.com/doomemacs/doomemacs/issues), + [documentation](https://docs.doomemacs.org), + [FAQ](https://docs.doomemacs.org/-/faq), + [Discourse](https://discourse.doomemacs.org), and + [Google](https://google.com), in case this issue has already been + reported/resolved. + required: true + - label: > + I have read "[How to Debug + Issues](https://doomemacs.org/d/how2debug)", and will use it to + provide as much information about this issue as possible. + required: true + - label: > + The issue can be reproduced on the **latest** available commit of + Doom. + required: true + - label: > + The issue can be reproduced on a stable release of Emacs, such as 27 + or 28. *(Doom does not support development builds like 29+ or any + version ending in .50 or .9x)* + required: true +- type: markdown + attributes: + value: "-----" +- type: textarea + attributes: + label: Expected behavior + description: A concise description of what you expected to happen. + placeholder: When I do X, it should do Y. + validations: + required: true +- type: textarea + attributes: + label: Current behavior + description: | + A concise description of what you're experiencing. Try to include: + + - A [backtrace](https://doomemacs.org/d/how2backtrace) for **each** error message. + - Any recent errors/warnings in the \*Messages\* buffer (`C-h e` to open it). + - Screenshots and gifs. + - Descriptions that are more helpful than "X does not work" or similar. + - Any attempts you made to resolve the issue yourself, and their result. + placeholder: | + When I do X, it does Z instead, which throws an error. Here is the backtrace: + + ``` + Debugger entered--Lisp error: (error "Beep Boop") + error("Beep Boop") + pp-eval-expression((error "Beep Boop")) + \#<subr funcall-interactively>(pp-eval-expression (error "Beep Boop")) + apply(#<subr funcall-interactively> (pp-eval-expression (error "Beep Boop"))) + funcall-interactively(pp-eval-expression (error "Beep Boop")) + ``` + validations: + required: true +- type: markdown + attributes: + value: | + > :warning: Take the time to properly format code and text dumps with [code fences](https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks), or use a [pastebin](https://pastebin.com) (or similar) service. +- type: textarea + attributes: + label: Steps to reproduce + description: > + Walk us through a minimal test case. Please spell out any keybinds (and + what commands they invoke), and assume the reader knows little about Doom + and/or Emacs. + placeholder: | + 1. Open Emacs + 2. `M-x doom/info` and be prompted to visit pastebin.com + 3. Press `y` to open pastebin.com in browser + 4. Paste the contents of my clipboard into text box + 5. Click "Create New Paste" + validations: + required: true +- type: input + id: doominfo + attributes: + label: System Information + description: | + Upload the contents of `M-x doom/info` or `$ ~/.config/emacs/bin/doom info` to [pastebin](https://pastebin.com), [gist](https://gist.github.com), or a similar service, then paste the link to it here. + placeholder: https://pastebin.com/fakeurl + validations: + required: true +- type: markdown + attributes: + value: | + > :warning: Please don't paste your doom-info directly into this box, and **please don't omit it**. If it's unavailable, **explain why in the textbox or another field above!** +- type: markdown + attributes: + value: | + + ----- + + Please take the time to ensure that your report is well-formatted and formulated, and all error messages include [a backtrace](https://doomemacs.org/d/how2backtrace). Issues that are **unactionable**, **vague**, and/or **inadequately researched** (or otherwise unhelpful to posterity) will see heavy delays or be automatically closed (possibly deleted). + + If you aren't sure that it makes the cut, submit it to [our Discord](https://doomemacs.org/discord) or [Discourse](https://discourse.doomemacs.org) instead. + + :heart: **Thank you for taking the time to file this bug report!** diff --git a/.config/emacs/.github/ISSUE_TEMPLATE/config.yml b/.config/emacs/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,14 @@ +blank_issues_enabled: false +contact_links: + - name: Official Documentation + url: https://github.com/doomemacs/doomemacs/blob/master/docs/index.org + about: "Walks you through how to use, abuse, or confuse Doom Emacs. Also available from within Doom: `M-x doom/help`" + - name: Visit our Discourse + url: https://discourse.doomemacs.org + about: "A repository of official learning resources and discussion forum for Emacs and Doom" + - name: Visit our Discord + url: https://doomemacs.org/discord + about: "A place to chat, get to know the community, and get help quick" + - name: See third-party resources + url: https://discourse.doomemacs.org/c/guides/resources + about: "A curated collection of non-official resources to help you learn Emacs and Doom" diff --git a/.config/emacs/.github/workflows/add-to-project.yml b/.config/emacs/.github/workflows/add-to-project.yml @@ -0,0 +1,8 @@ +name: Add issues to project +on: + issues: + types: [opened] +jobs: + add-to-project: + uses: doomemacs/ci/.github/workflows/add-to-project.yml@legacy + secrets: inherit diff --git a/.config/emacs/.github/workflows/lint-commits.yml b/.config/emacs/.github/workflows/lint-commits.yml @@ -0,0 +1,5 @@ +name: Lint commits +on: [push, pull_request] +jobs: + lint-commits: + uses: doomemacs/ci/.github/workflows/lint-commits.yml@legacy diff --git a/.config/emacs/.github/workflows/triage.yml b/.config/emacs/.github/workflows/triage.yml @@ -0,0 +1,7 @@ +name: Mark stale issues and lock closed threads +on: + schedule: + - cron: '0 */12 * * *' # twice, daily +jobs: + triage: + use: doomemacs/ci/.github/workflows/triage.yml@legacy diff --git a/.config/emacs/.gitignore b/.config/emacs/.gitignore @@ -0,0 +1,53 @@ +# machine generated doom profiles or metadata +/profiles/*.el +/.local*/ + +# possible user config files +/profiles.el +/init.el +/config.el +/packages.el + +# generated by elisp packages in sub-directories +*~ +*.*~ +\#* +.\#* +*.cache* +*.log +*.elc +*.eln +*.lib +*.fas +*.dat +*.eld +*.rel +*_archive +*_flymake.* +.dap-breakpoints +.emacs.desktop +.emacs.desktop.lock +.org-id-locations +.projectile +.tern-port +.yas-compiled-snippets.el +flycheck_*.el + +# generated by elisp packages at root +/.local/ +/.cask/ +/auto/ +/auto-save-list/ +/cask/ +/ede-projects.el +/eln-cache/ +/elpa/ +/eshell/ +/network-security.data +/places +/semanticdb +/server/ +/smex-items +/tramp +/transient/ +/var/ diff --git a/.config/fish/config.fish b/.config/fish/config.fish @@ -9,7 +9,7 @@ set fish_greeting # Supresses fish's intro messa set TERM "xterm-256color" # Sets the terminal type set EDITOR "nvim" # $EDITOR use neovim in terminal set VISUAL "notepadqq" # $VISUAL use notepadqq in GUI mode -set PATH "$HOME/.emacs.d/bin:$PATH" # Add doom emacs to the path +set PATH "$HOME/.config/emacs/bin:$PATH" # Add doom emacs to the path ### SET MANPAGER ### Uncomment only one of these!