Everything to get a working desktop with my config. Lots of Emacs stuff though. https://phundrak.com/config
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

163 lines
14 KiB

  1. ;; -*- mode: emacs-lisp; lexical-binding: t -*-
  2. (defun dotspacemacs/init ()
  3. "Initialization:
  4. This function is called at the very beginning of Spacemacs startup,
  5. before layer configuration.
  6. It should only modify the values of Spacemacs settings."
  7. (setq phundrak//dotspacemacs-src-dir (concat (getenv "HOME") "/.config/emacs/private/")
  8. phundrak//dotspacemacs-src (concat (getenv "HOME") "/org/config/spacemacs.org")
  9. phundrak//dotspacemacs-si (concat phundrak//dotspacemacs-src-dir "spacemacs-init.el")
  10. phundrak//dotspacemacs-sl (concat phundrak//dotspacemacs-src-dir "spacemacs-layers.el")
  11. phundrak//dotspacemacs-uc (concat phundrak//dotspacemacs-src-dir "user-config.el")
  12. phundrak//dotspacemacs-ui (concat phundrak//dotspacemacs-src-dir "user-init.el"))
  13. (when (or (file-newer-than-file-p phundrak//dotspacemacs-src phundrak//dotspacemacs-si)
  14. (file-newer-than-file-p phundrak//dotspacemacs-src phundrak//dotspacemacs-sl)
  15. (file-newer-than-file-p phundrak//dotspacemacs-src phundrak//dotspacemacs-ui)
  16. (file-newer-than-file-p phundrak//dotspacemacs-src phundrak//dotspacemacs-uc))
  17. (princ "Exporting new Emacs configuration from spacemacs.org through org-babel...")
  18. (call-process
  19. (concat invocation-directory invocation-name)
  20. nil nil t
  21. "-q" "--batch" "--eval" "(require 'ob-tangle)"
  22. "--eval" (format "(org-babel-tangle-file \"%s\")" phundrak//dotspacemacs-src))
  23. (princ "done"))
  24. (load-file phundrak//dotspacemacs-si))
  25. (defun dotspacemacs/layers ()
  26. "Layer configuration:
  27. This function should only modify configuration layer settings."
  28. (load-file phundrak//dotspacemacs-sl))
  29. (defun dotspacemacs/user-env ()
  30. "Environment variables setup.
  31. This function defines the environment variables for your Emacs session. By
  32. default it calls `spacemacs/load-spacemacs-env' which loads the environment
  33. variables declared in `~/.spacemacs.env' or `~/.spacemacs.d/.spacemacs.env'.
  34. See the header of this file for more information."
  35. (spacemacs/load-spacemacs-env))
  36. (defun dotspacemacs/user-init ()
  37. "Initialization for user code:
  38. This function is called immediately after `dotspacemacs/init', before layer
  39. configuration.
  40. It is mostly for variables that should be set before packages are loaded.
  41. If you are unsure, try setting them in `dotspacemacs/user-config' first."
  42. (load-file phundrak//dotspacemacs-ui))
  43. (defun dotspacemacs/user-load ()
  44. "Library to load while dumping.
  45. This function is called only while dumping Spacemacs configuration. You can
  46. `require' or `load' the libraries of your choice that will be included in the
  47. dump."
  48. )
  49. (defun dotspacemacs/user-config ()
  50. "Configuration for user code:
  51. This function is called at the very end of Spacemacs startup, after layer
  52. configuration.
  53. Put your configuration code here, except for variables that should be set
  54. before packages are loaded."
  55. (load-file phundrak//dotspacemacs-uc))
  56. ;; Do not write anything past this comment. This is where Emacs will
  57. ;; auto-generate custom variable definitions.
  58. (custom-set-variables
  59. ;; custom-set-variables was added by Custom.
  60. ;; If you edit it by hand, you could mess it up, so be careful.
  61. ;; Your init file should contain only one such instance.
  62. ;; If there is more than one, they won't work right.
  63. '(ansi-color-faces-vector
  64. [default default default italic underline success warning error])
  65. '(ansi-color-names-vector
  66. ["black" "red3" "ForestGreen" "yellow3" "blue" "magenta3" "DeepSkyBlue" "gray50"])
  67. '(evil-want-Y-yank-to-eol nil)
  68. '(org-export-headline-levels 4)
  69. '(package-selected-packages
  70. '(xkcd vmd-mode visual-fill-column typit mmt sudoku restclient-helm pony-mode pacmacs ox-reveal outorg ob-restclient ob-http meson-mode ibuffer-projectile lv helm-w3m w3m graphviz-dot-mode flycheck-gometalinter transient ess-smart-equals ess-R-data-view ctable ess julia-mode eshell-git-prompt emoji-cheat-sheet-plus edit-indirect dockerfile-mode docker docker-tramp company-restclient restclient know-your-http-well company-quickhelp company-emoji company-emacs-eclim eclim atomic-chrome websocket 2048-game ox-gfm slime-company slime common-lisp-snippets erlang insert-shebang fish-mode company-shell faceup racket-mode treepy graphql yapfify yaml-mode xterm-color web-beautify twittering-mode toml-mode tagedit stickyfunc-enhance smeargle slim-mode shell-pop selectric-mode scss-mode sass-mode ranger rainbow-identifiers pytest pyenv-mode py-isort pug-mode plantuml-mode phpunit phpcbf php-auto-yasnippets pdf-tools tablist ox-pandoc orgit org-present org-pomodoro alert log4e gntp ob-elixir multi-term markdown-toc magit-gitflow magit-gh-pulls livid-mode live-py-mode json-snatcher js2-refactor js-doc htmlize hlint-refactor hindent helm-pydoc helm-hoogle helm-gitignore helm-css-scss haskell-snippets haml-mode gnuplot glsl-mode gitignore-mode github-search github-clone github-browse-file gitconfig-mode gitattributes-mode git-messenger gist gh marshal logito pcache ht gh-md flyspell-correct-helm flyspell-correct flycheck-rust pos-tip flycheck-mix flycheck-credo eshell-z eshell-prompt-extras esh-help drupal-mode disaster cython-mode dash-functional tern company-ghci company-ghc ghc color-identifiers-mode cmm-mode clang-format cargo auto-dictionary alchemist modern-cpp-font-lock yasnippet-snippets x86-lookup web-mode srefactor racer pyvenv pip-requirements pandoc-mode org-projectile org-category-capture org-mime org-download nasm-mode json-reformat intero imenu-list hy-mode git-timemachine git-link geiser flycheck-pos-tip flycheck-haskell evil-magit emmet-mode cmake-mode anaconda-mode rust-mode elixir-mode flycheck haskell-mode multiple-cursors skewer-mode simple-httpd markdown-mode magit magit-popup git-commit ghub with-editor pythonic emms gmail-message-mode ham-mode html-to-markdown flymd edit-server image-dired+ go-guru go-eldoc company-go go-mode unfill mwim company-web web-completion-data company-tern company-cabal company-c-headers company-auctex company-anaconda elcord xresources-theme sql-indent rainbow-mode php-extras php-mode mmm-mode json-mode js2-mode csv-mode coffee-mode auctex helm-company helm-c-yasnippet fuzzy company-statistics company auto-yasnippet yasnippet ac-ispell auto-complete ws-butler winum which-key volatile-highlights vi-tilde-fringe uuidgen use-package toc-org spaceline powerline restart-emacs request rainbow-delimiters popwin persp-mode pcre2el paradox spinner org-plus-contrib org-bullets open-junk-file neotree move-text macrostep lorem-ipsum linum-relative link-hint indent-guide hydra hungry-delete hl-todo highlight-parentheses highlight-numbers parent-mode highlight-indentation helm-themes helm-swoop helm-projectile helm-mode-manager helm-make projectile pkg-info epl helm-flx helm-descbinds helm-ag google-translate golden-ratio flx-ido flx fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state smartparens evil-indent-plus evil-iedit-state iedit evil-exchange evil-escape evil-ediff evil-args evil-anzu anzu evil goto-chg undo-tree eval-sexp-fu highlight elisp-slime-nav dumb-jump f dash s diminish define-word column-enforce-mode clean-aindent-mode bind-map bind-key auto-highlight-symbol auto-compile packed aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line helm avy helm-core popup async)))
  71. (custom-set-faces
  72. ;; custom-set-faces was added by Custom.
  73. ;; If you edit it by hand, you could mess it up, so be careful.
  74. ;; Your init file should contain only one such instance.
  75. ;; If there is more than one, they won't work right.
  76. )
  77. (defun dotspacemacs/emacs-custom-settings ()
  78. "Emacs custom settings.
  79. This is an auto-generated function, do not modify its content directly, use
  80. Emacs customize menu instead.
  81. This function is called at the very end of Spacemacs initialization."
  82. (custom-set-variables
  83. ;; custom-set-variables was added by Custom.
  84. ;; If you edit it by hand, you could mess it up, so be careful.
  85. ;; Your init file should contain only one such instance.
  86. ;; If there is more than one, they won't work right.
  87. '(ansi-color-faces-vector
  88. [default default default italic underline success warning error])
  89. '(ansi-color-names-vector
  90. ["black" "red3" "ForestGreen" "yellow3" "blue" "magenta3" "DeepSkyBlue" "gray50"])
  91. '(default-input-method "ipa-x-sampa")
  92. '(eshell-aliases-file "/home/phundrak/.emacs.d/private/eshell-alias")
  93. '(evil-want-Y-yank-to-eol nil)
  94. '(fci-rule-color "#5B6268")
  95. '(hl-todo-keyword-faces
  96. (quote
  97. (("TODO" . "#dc752f")
  98. ("NEXT" . "#dc752f")
  99. ("THEM" . "#2d9574")
  100. ("PROG" . "#3a81c3")
  101. ("OKAY" . "#3a81c3")
  102. ("DONT" . "#f2241f")
  103. ("FAIL" . "#f2241f")
  104. ("DONE" . "#42ae2c")
  105. ("NOTE" . "#b1951d")
  106. ("KLUDGE" . "#b1951d")
  107. ("HACK" . "#b1951d")
  108. ("TEMP" . "#b1951d")
  109. ("FIXME" . "#dc752f")
  110. ("XXX" . "#dc752f")
  111. ("XXXX" . "#dc752f"))))
  112. '(jdee-db-active-breakpoint-face-colors (cons "#1B2229" "#51afef"))
  113. '(jdee-db-requested-breakpoint-face-colors (cons "#1B2229" "#98be65"))
  114. '(jdee-db-spec-breakpoint-face-colors (cons "#1B2229" "#3f444a"))
  115. '(objed-cursor-color "#ff6c6b")
  116. '(org-export-headline-levels 4)
  117. '(package-selected-packages
  118. (quote
  119. (org-treeusage caddyfile-mode org-ref lsp-dart mu4e-maildirs-extension mu4e-alert helm-mu xkcd vmd-mode visual-fill-column typit mmt sudoku restclient-helm pony-mode pacmacs ox-reveal outorg ob-restclient ob-http meson-mode ibuffer-projectile lv helm-w3m w3m graphviz-dot-mode flycheck-gometalinter transient ess-smart-equals ess-R-data-view ctable ess julia-mode eshell-git-prompt emoji-cheat-sheet-plus edit-indirect dockerfile-mode docker docker-tramp company-restclient restclient know-your-http-well company-quickhelp company-emoji company-emacs-eclim eclim atomic-chrome websocket 2048-game ox-gfm slime-company slime common-lisp-snippets erlang insert-shebang fish-mode company-shell faceup racket-mode treepy graphql yapfify yaml-mode xterm-color web-beautify twittering-mode toml-mode tagedit stickyfunc-enhance smeargle slim-mode shell-pop selectric-mode scss-mode sass-mode ranger rainbow-identifiers pytest pyenv-mode py-isort pug-mode plantuml-mode phpunit phpcbf php-auto-yasnippets pdf-tools tablist ox-pandoc orgit org-present org-pomodoro alert log4e gntp ob-elixir multi-term markdown-toc magit-gitflow magit-gh-pulls livid-mode live-py-mode json-snatcher js2-refactor js-doc htmlize hlint-refactor hindent helm-pydoc helm-hoogle helm-gitignore helm-css-scss haskell-snippets haml-mode gnuplot glsl-mode gitignore-mode github-search github-clone github-browse-file gitconfig-mode gitattributes-mode git-messenger gist gh marshal logito pcache ht gh-md flyspell-correct-helm flyspell-correct flycheck-rust pos-tip flycheck-mix flycheck-credo eshell-z eshell-prompt-extras esh-help drupal-mode disaster cython-mode dash-functional tern company-ghci company-ghc ghc color-identifiers-mode cmm-mode clang-format cargo auto-dictionary alchemist modern-cpp-font-lock yasnippet-snippets x86-lookup web-mode srefactor racer pyvenv pip-requirements pandoc-mode org-projectile org-category-capture org-mime org-download nasm-mode json-reformat intero imenu-list hy-mode git-timemachine git-link geiser flycheck-pos-tip flycheck-haskell evil-magit emmet-mode cmake-mode anaconda-mode rust-mode elixir-mode flycheck haskell-mode multiple-cursors skewer-mode simple-httpd markdown-mode magit magit-popup git-commit ghub with-editor pythonic emms gmail-message-mode ham-mode html-to-markdown flymd edit-server image-dired+ go-guru go-eldoc company-go go-mode unfill mwim company-web web-completion-data company-tern company-cabal company-c-headers company-auctex company-anaconda elcord xresources-theme sql-indent rainbow-mode php-extras php-mode mmm-mode json-mode js2-mode csv-mode coffee-mode auctex helm-company helm-c-yasnippet fuzzy company-statistics company auto-yasnippet yasnippet ac-ispell auto-complete ws-butler winum which-key volatile-highlights vi-tilde-fringe uuidgen use-package toc-org spaceline powerline restart-emacs request rainbow-delimiters popwin persp-mode pcre2el paradox spinner org-plus-contrib org-bullets open-junk-file neotree move-text macrostep lorem-ipsum linum-relative link-hint indent-guide hydra hungry-delete hl-todo highlight-parentheses highlight-numbers parent-mode highlight-indentation helm-themes helm-swoop helm-projectile helm-mode-manager helm-make projectile pkg-info epl helm-flx helm-descbinds helm-ag google-translate golden-ratio flx-ido flx fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state smartparens evil-indent-plus evil-iedit-state iedit evil-exchange evil-escape evil-ediff evil-args evil-anzu anzu evil goto-chg undo-tree eval-sexp-fu highlight elisp-slime-nav dumb-jump f dash s diminish define-word column-enforce-mode clean-aindent-mode bind-map bind-key auto-highlight-symbol auto-compile packed aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line helm avy helm-core popup async)))
  120. '(pdf-view-midnight-colors (quote ("#655370" . "#fbf8ef")))
  121. '(safe-local-variable-values
  122. (quote
  123. ((org-confirm-babel-evaluate)
  124. (javascript-backend . tern)
  125. (javascript-backend . lsp))))
  126. '(solaire-mode-auto-swap-bg t)
  127. '(vc-annotate-background "#282c34")
  128. '(vc-annotate-color-map
  129. (list
  130. (cons 20 "#98be65")
  131. (cons 40 "#b4be6c")
  132. (cons 60 "#d0be73")
  133. (cons 80 "#ECBE7B")
  134. (cons 100 "#e6ab6a")
  135. (cons 120 "#e09859")
  136. (cons 140 "#da8548")
  137. (cons 160 "#d38079")
  138. (cons 180 "#cc7cab")
  139. (cons 200 "#c678dd")
  140. (cons 220 "#d974b7")
  141. (cons 240 "#ec7091")
  142. (cons 260 "#ff6c6b")
  143. (cons 280 "#cf6162")
  144. (cons 300 "#9f585a")
  145. (cons 320 "#6f4e52")
  146. (cons 340 "#5B6268")
  147. (cons 360 "#5B6268")))
  148. '(vc-annotate-very-old-color nil))
  149. (custom-set-faces
  150. ;; custom-set-faces was added by Custom.
  151. ;; If you edit it by hand, you could mess it up, so be careful.
  152. ;; Your init file should contain only one such instance.
  153. ;; If there is more than one, they won't work right.
  154. )
  155. )