191 lines
5.4 KiB
EmacsLisp
191 lines
5.4 KiB
EmacsLisp
(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
|
|
'(
|
|
;; ----------------------------------------------------------------
|
|
;; Example of useful layers you may want to use right away.
|
|
;; Uncomment some layer names and press `SPC f e R' (Vim style) or
|
|
;; `M-m f e R' (Emacs style) to install them.
|
|
;; ----------------------------------------------------------------
|
|
|
|
;; Install the packages from 'Required:' before using spacemacs.
|
|
|
|
;; 3 Checker
|
|
(spell-checking :variables ;; Required: aspell
|
|
spell-checking-enable-by-default nil)
|
|
syntax-checking
|
|
;; 4 Completion
|
|
auto-completion
|
|
;helm ; This is slow. Replace by ivy.
|
|
ivy
|
|
|
|
;; 6 Emacs
|
|
(org :variables
|
|
org-enable-notifications 't
|
|
org-start-notification-daemon-on-startup 't
|
|
org-enable-org-journal-support 't
|
|
)
|
|
semantic
|
|
tabs
|
|
|
|
;; 7 File trees
|
|
treemacs
|
|
;neotree
|
|
|
|
;; 8 Fonts
|
|
unicode-fonts
|
|
;; 9 Fun
|
|
emoji
|
|
|
|
;; 11 Miscellaneous
|
|
multiple-cursors
|
|
spacemacs-layouts
|
|
spacemacs-modeline
|
|
spacemacs-navigation
|
|
spacemacs-org
|
|
spacemacs-project
|
|
|
|
;; 12 Music
|
|
alda ; Required: alda
|
|
|
|
;; 15 Programming Languages
|
|
|
|
;; Markdown
|
|
markdown
|
|
yaml
|
|
html
|
|
csv
|
|
bibtex
|
|
(latex :variables
|
|
latex-backend 'lsp ; LSP
|
|
latex-enable-folding t
|
|
latex-enable-magic nil
|
|
magic-latex-enable-block-highlight t
|
|
magic-latex-enable-block-align nil
|
|
;; Massively slows down emacs due to fonts
|
|
magic-latex-enable-pretty-symbols nil
|
|
magic-latex-enable-suscript t
|
|
magic-latex-enable-inline-image nil)
|
|
|
|
;; Scripting Languages
|
|
emacs-lisp ; Should always be here.
|
|
shell-scripts
|
|
sql
|
|
gpu ; CUDA, OpenGL shaders
|
|
javascript
|
|
typescript
|
|
|
|
;; Others
|
|
coq
|
|
(python :variables
|
|
python-backend 'lsp
|
|
python-lsp-server 'pyright)
|
|
;python-shell-interpreter "python-runtime.sh"
|
|
;python-shell-interpreter-args "-m IPython --simple-prompt -i")
|
|
rust ; Required: See rust page
|
|
(c-c++ :variables ; Required: LLVM
|
|
c-c++-adopt-subprojects t
|
|
;c-c++-backend 'lsp-ccls ; Requires ccls
|
|
c-c++-backend 'lsp-clangd ; Requires LLVM
|
|
c-c++-default-mode-for-headers 'c++-mode
|
|
c-c++-enable-clang-format-on-save t
|
|
c-c++-enable-clang-support t
|
|
c-c++-lsp-enable-semantic-highlight 'rainbow
|
|
clang-format-style "file"
|
|
)
|
|
;; 16 Readers
|
|
pdf
|
|
|
|
;; 18 Source Control
|
|
git
|
|
version-control
|
|
|
|
;; 20 Tagging
|
|
cscope
|
|
|
|
;; 21 themes
|
|
colors
|
|
theming ; Modification of themes
|
|
themes-megapack
|
|
|
|
; 22 Tools
|
|
(cmake :variables
|
|
cmake-backend 'lsp
|
|
cmake-enable-cmake-ide-support t)
|
|
debug
|
|
docker
|
|
finance ; Required: ledger
|
|
(lsp :variables
|
|
lsp-headerline-breadcrumb-enable t
|
|
lsp-headerline-breadcrumb-segments '(symbols))
|
|
nginx
|
|
(shell :variables
|
|
shell-default-height 30
|
|
shell-default-position 'bottom)
|
|
systemd
|
|
|
|
)
|
|
|
|
|
|
;; List of additional packages that will be installed without being wrapped
|
|
;; in a layer (generally the packages are installed only and should still be
|
|
;; loaded using load/require/use-package in the user-config section below in
|
|
;; this file). 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
|
|
'(
|
|
all-the-icons
|
|
centaur-tabs
|
|
smart-tabs-mode
|
|
tablist
|
|
mini-frame
|
|
|
|
company-statistics
|
|
exec-path-from-shell
|
|
|
|
highlight-doxygen
|
|
)
|
|
|
|
;; A list of packages that cannot be updated.
|
|
dotspacemacs-frozen-packages '()
|
|
|
|
;; A list of packages that will not be installed and loaded.
|
|
;; Exclude orgit to fix mode problem in PDFView
|
|
dotspacemacs-excluded-packages '(orgit)
|
|
|
|
;; 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)
|