even more of my dotspacemacs in spacemacs.org

This commit is contained in:
2020-01-16 00:49:36 +01:00
parent 21aa91b778
commit 3f06bb7740
2 changed files with 508 additions and 220 deletions

View File

@@ -2,217 +2,6 @@
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
;; or `spacemacs'. (default 'spacemacs)
dotspacemacs-distribution 'spacemacs
;; Lazy installation of layers (i.e. layers are installed only when a file
;; with a supported type is opened). Possible values are `all', `unused'
;; and `nil'. `unused' will lazy install only unused layers (i.e. layers
;; not listed in variable `dotspacemacs-configuration-layers'), `all' will
;; lazy install any layer that support lazy installation even the layers
;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy
;; installation feature and you have to explicitly list a layer in the
;; variable `dotspacemacs-configuration-layers' to install it.
;; (default 'unused)
dotspacemacs-enable-lazy-installation 'unused
;; If non-nil then Spacemacs will ask for confirmation before installing
;; a layer lazily. (default t)
dotspacemacs-ask-for-lazy-installation t
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
;; List of configuration layers to load.
dotspacemacs-configuration-layers
'(asm
(auto-completion :variables
auto-completion-complete-with-key-sequence-delay 0.2
auto-completion-enable-help-tooltip 'manual
auto-completion-enable-snippets-in-popup t
auto-completion-enable-sort-by-usage t
:disabled-for
org
git)
(better-defaults :variables
better-defaults-move-to-beginning-of-code-first t
better-defaults-move-to-end-of-code-first t)
(c-c++ :variables
c-c++-default-mode-for-headers 'c-mode
c-c++-adopt-subprojects t
c-c++-enable-google-style t
c-c++-enable-c++11 t
c-c++-backend 'lsp-ccls
c-c++-lsp-executable "/usr/bin/ccls"
c-c++-lsp-sem-highlight-method 'overlay
c-c++-lsp-sem-highlight-rainbow t
c-c++-adopt-subprojects t
c++-enable-organize-includes-on-save t)
(cmake :variables
cmake-enable-cmake-ide-support t)
conlanging
csv
colors
(dart :variables
dart-server-sdk-path "/opt/flutter/bin/cache/dart-sdk/"
lsp-dart-sdk-dir "/opt/flutter/bin/cache/dart-sdk/")
dap
dired-phundrak
django
docker
emacs-lisp
epub
ess
git
graphviz
(go :variables
go-backend 'lsp
go-tab-width 2
go-use-golangci-lint t)
gnus
(helm :variables
helm-no-header t
helm-use-fuzzy 'source)
helpful
(html :variables
web-fmt-tool 'web-beautify
css-enable-lsp t
less-enable-lsp t
scss-enable-lsp t
html-enable-lsp t)
(ibuffer :variables
ibuffer-group-buffers-by 'projects)
imenu-list
(javascript :variables
javascript-backend 'lsp
javascript-lsp-linter nil
javascript-fmt-tool 'web-beautify
javascript-repl 'skewer
node-add-modules-path t)
(json :variables
json-fmt-tool 'web-beautify)
(keyboard-layout :variables
kl-layout 'bepo
kl-disabled-configurations '(magit dired eww))
(latex :variables
latex-build-command "xelatex"
latex-enable-auto-fill t
latex-enable-folding t
latex-enable-magic t)
lsp
major-modes
(markdown :variables
markdown-live-preview-engine 'vmd
markdown-mmm-auto-modes '("c"
"c++"
"python"
"rust"
("elisp" "emacs-lisp")))
nginx
(org :variables
org-enable-reveal-js-support t
org-enable-github-support t
spaceline-org-clock-p t
org-enable-sticky-header t
org-enable-epub-support t
org-projectile-file "TODOs.org"
org-download-image-dir "~/Pictures/org/"
org-enable-org-journal-support t
org-journal-dir "~/org/journal/"
org-journal-file-format "%Y-%m-%d"
org-enable-epub-support t
org-return-follows-link t)
pass
pdf
prettier
prolog
(python :variables
python-backend 'lsp
python-sort-imports-on-save t
python-fill-column 80
python-test-runner '(pytest nose)
python-formatter 'lsp)
(restclient :variables
restclient-use-org t)
(rust :variables rust-backend 'lsp)
(scheme :variables
geiser-chicken-binary "chicken-csi")
semantic
(shell :variables
shell-default-height 40
shell-default-position 'bottom
shell-default-shell 'eshell)
shell-scripts
selectric
semantic
(spell-checking :variables
spell-checking-enable-by-default nil
spell-checking-enable-auto-dictionary t
enable-flyspell-auto-completion nil)
(syntax-checking :variables
spell-checking-enable-by-default nil
spell-checking-enable-auto-dictionary t
syntax-checking-enable-tooltips t
syntax-checking-use-original-bitmaps t)
systemd
(treemacs :variables
treemacs-use-follow-mode nil
treemacs-use-filewatch-mode t)
twitter
unicode-fonts
w3m
xkcd
web-beautify
yaml)
;; List of additional packages that will be installed without being
;; wrapped in a layer. If you need some configuration for these
;; packages, then consider creating a layer. You can also put the
;; configuration in `dotspacemacs/user-config'.
;; To use a local version of a package, use the `:location' property:
;; '(your-package :location "~/path/to/your-package/")
;; Also include the dependencies as they will not be resolved automatically.
dotspacemacs-additional-packages '(atomic-chrome
dired-du
doom-themes
edit-indirect
elcord
eshell-git-prompt
flycheck-golangci-lint
kaolin-themes
magit-gitflow
meson-mode
modern-cpp-font-lock
multiple-cursors
org-sidebar
outorg
pinentry
visual-fill-column
wttrin
xresources-theme
yasnippet-snippets)
;; A list of packages that cannot be updated.
dotspacemacs-frozen-packages '()
;; A list of packages that will not be installed and loaded.
dotspacemacs-excluded-packages '()
;; Defines the behaviour of Spacemacs when installing packages.
;; Possible values are `used-only', `used-but-keep-unused' and `all'.
;; `used-only' installs only explicitly used packages and deletes any unused
;; packages as well as their unused dependencies. `used-but-keep-unused'
;; installs only the used packages but won't delete unused ones. `all'
;; installs *all* packages supported by Spacemacs and never uninstalls them.
;; (default is `used-only')
dotspacemacs-install-packages 'used-only))
(defun dotspacemacs/init ()
"Initialization:
This function is called at the very beginning of Spacemacs startup,
@@ -222,9 +11,11 @@ It should only modify the values of Spacemacs settings."
phundrak/gnus-uc (concat (getenv "HOME") "/.gnus.el")
phundrak/src (concat (getenv "HOME") "/spacemacs.org")
phundrak/si (concat phundrak/src-dir "spacemacs-init.el")
phundrak/sl (concat phundrak/src-dir "spacemacs-layers.el")
phundrak/uc (concat phundrak/src-dir "user-config.el")
phundrak/ui (concat phundrak/src-dir "user-init.el"))
(when (or (file-newer-than-file-p phundrak/src phundrak/si)
(file-newer-than-file-p phundrak/src phundrak/sl)
(file-newer-than-file-p phundrak/src phundrak/ui)
(file-newer-than-file-p phundrak/src phundrak/uc)
(file-newer-than-file-p phundrak/src phundrak/gnus-uc))
@@ -237,6 +28,11 @@ It should only modify the values of Spacemacs settings."
(load-file phundrak/si))
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(load-file phundrak/sl))
(defun dotspacemacs/user-env ()
"Environment variables setup.
This function defines the environment variables for your Emacs session. By
@@ -341,12 +137,7 @@ This function is called at the very end of Spacemacs initialization."
(quote
((org-confirm-babel-evaluate)
(javascript-backend . tern)
(javascript-backend . lsp)
(go-backend . go-mode)
(go-backend . lsp))))
'(send-mail-function (quote smtpmail-send-it))
'(smtpmail-smtp-server "mail.phundrak.com")
'(smtpmail-smtp-service 587)
(javascript-backend . lsp))))
'(solaire-mode-auto-swap-bg t)
'(vc-annotate-background "#282c34")
'(vc-annotate-color-map