major restructuring for using snowfall
This commit is contained in:
8
non-nix/emacs/chemacs/.emacs-profiles.el
Normal file
8
non-nix/emacs/chemacs/.emacs-profiles.el
Normal file
@ -0,0 +1,8 @@
|
||||
(("default" . ((user-emacs-directory . "~/emacs/doom-emacs")))
|
||||
("vanilla" . ((user-emacs-directory . "~/emacs/vanilla")))
|
||||
("spacemacs" . ((user-emacs-directory . "~/emacs/spacemacs")))
|
||||
)
|
||||
;(env . (("DOOMDIR" . "~/emacs/doom-config"))))))
|
||||
;("doom" . ((user-emacs-directory . "~/emacs/doom")))
|
||||
;(doom-private-dir . "~/emacs/doom-config"))))
|
||||
;)
|
344
non-nix/emacs/doom/config.el
Normal file
344
non-nix/emacs/doom/config.el
Normal file
@ -0,0 +1,344 @@
|
||||
;; Here are some additional functions/macros that could help you configure Doom:
|
||||
;; - `load!' for loading external *.el files relative to this one
|
||||
;; - `use-package!' for configuring packages
|
||||
;; - `after!' for running code after a package has loaded
|
||||
;; - `add-load-path!' for adding directories to the `load-path', relative to
|
||||
;; this file. Emacs searches the `load-path' when you load packages with
|
||||
;; `require' or `use-package'.
|
||||
;; - `map!' for binding new keys
|
||||
|
||||
(setq user-full-name "Julian Mutter"
|
||||
user-mail-address "julian.mutter@comumail.de")
|
||||
|
||||
(setq doom-theme 'doom-dracula
|
||||
doom-font (font-spec :family "Source Code Pro" :size 14)
|
||||
doom-variable-pitch-font (font-spec :family "DejaVu Sans" :size 15))
|
||||
|
||||
(setq display-line-numbers-type 'nil) ;; 'relative
|
||||
|
||||
(setq-default evil-escape-key-sequence "kj")
|
||||
|
||||
;; (after! company
|
||||
;; (setq company-idle-delay 0.1))
|
||||
|
||||
(map! :leader :desc "Open external terminal" "o t" (cmd! (call-process-shell-command "$TERMINAL &" nil 0)))
|
||||
(map! :leader :desc "Open external file explorer" "o e" (cmd! (call-process-shell-command "thunar &" nil 0)))
|
||||
|
||||
;; Remap font scaling keybindings to make more sense
|
||||
(map! :desc "Increase font size" :n "C-+" #'text-scale-increase)
|
||||
(map! :desc "Decrease font size" :n "C--" #'text-scale-decrease)
|
||||
(map! :desc "Reset font size" :n "C-=" #'doom/reset-font-size)
|
||||
|
||||
(map! :desc "Flycheck next error" :nv "g n" #'flycheck-next-error)
|
||||
(map! :desc "Flycheck previous error" :nv "g N" #'flycheck-previous-error)
|
||||
(map! :leader "c X" #'flycheck-list-errors)
|
||||
|
||||
(map! :desc "Save" :g "C-s" #'fd-save-and-escape)
|
||||
;; (map! :leader "w 1" #'delete-other-windows)
|
||||
(map! :leader "t p" #'+popup/toggle)
|
||||
|
||||
;; Useful for recompiling or running a project
|
||||
(map! :nvi "<f5>" #'projectile-repeat-last-command)
|
||||
|
||||
;; Do not use autosave when using vim save command
|
||||
(evil-ex-define-cmd "write" #'fd-format-without-autosave)
|
||||
|
||||
;; Select other window by number
|
||||
(dotimes (counter 9)
|
||||
(let ((command (format "(map! :leader \"%d\" #'winum-select-window-%d)"
|
||||
(1+ counter) (1+ counter))))
|
||||
(eval (read command))))
|
||||
|
||||
(map! :leader "r" #'quickrun)
|
||||
|
||||
(defun fd-format-without-autosave()
|
||||
(interactive)
|
||||
(let ((current-prefix-arg 4)) ;; pass universal argument
|
||||
(call-interactively #'save-buffer))
|
||||
)
|
||||
|
||||
(defun fd-save-and-escape()
|
||||
(interactive)
|
||||
(company-abort)
|
||||
(evil-force-normal-state)
|
||||
(save-buffer))
|
||||
|
||||
;; Do not ask before exiting emacs
|
||||
(setq confirm-kill-emacs nil)
|
||||
|
||||
;; Open pdf files with external reader
|
||||
(openwith-mode t)
|
||||
(setq openwith-associations '(("\\.pdf\\'" "evince" (file))))
|
||||
|
||||
;; Org settings
|
||||
(setq org-directory "~/Nextcloud/org"
|
||||
org-roam-directory "~/Nextcloud/org/roam")
|
||||
|
||||
;; Make all org files agenda files
|
||||
(setq org-agenda-files (list org-directory "~/dev/bachelor-thesis/notes"))
|
||||
|
||||
(setq org-export-allow-bind-keywords t)
|
||||
|
||||
;; Insert timestamp when marking task as done
|
||||
(setq org-log-done #'time)
|
||||
|
||||
(add-hook 'org-clock-in-hook #'save-buffer)
|
||||
(add-hook 'org-clock-out-hook #'save-buffer)
|
||||
|
||||
(setq org-pomodoro-manual-break t)
|
||||
|
||||
;; Max volume is 65536 since player is paplay
|
||||
(let ((volume "--volume=40000"))
|
||||
(setq org-pomodoro-start-sound-args volume)
|
||||
(setq org-pomodoro-killed-sound-args volume)
|
||||
(setq org-pomodoro-ticking-sound-args volume)
|
||||
(setq org-pomodoro-finished-sound-args volume)
|
||||
(setq org-pomodoro-overtime-sound-args volume)
|
||||
(setq org-pomodoro-long-break-sound-args volume)
|
||||
(setq org-pomodoro-short-break-sound-args volume)
|
||||
)
|
||||
|
||||
(setq org-agenda-custom-commands
|
||||
'(("." "Clocking today" agenda ""
|
||||
((org-agenda-span 1)
|
||||
(org-agenda-start-day "today")
|
||||
(org-agenda-start-with-clockreport-mode t)
|
||||
(org-agenda-start-with-log-mode 'clockcheck)
|
||||
))))
|
||||
|
||||
(setq org-agenda-clockreport-parameter-plist '(:link t :maxlevel 2 :fileskip0 t)) ;; :stepskip0 t
|
||||
(setq org-clock-mode-line-total 'today)
|
||||
|
||||
(map! :map org-mode-map :nvi "C-k" #'org-backward-element)
|
||||
(map! :map org-mode-map :nvi "C-j" #'org-forward-element)
|
||||
(map! :map org-mode-map :nvi "C-h" #'org-up-element)
|
||||
(map! :map org-mode-map :nvi "C-l" #'org-down-element)
|
||||
|
||||
(map! :map org-mode-map :nvi "M-i" #'org-roam-node-insert)
|
||||
(map! :map org-mode-map :nvi "M-@" #'org-cite-insert)
|
||||
(map! :map doom-leader-notes-map "r r" #'org-roam-node-find)
|
||||
(map! :map doom-leader-notes-map "r t" #'org-roam-buffer-toggle)
|
||||
(map! :map doom-leader-notes-map "s" #'fd-org-notes-search-follow-symlinks)
|
||||
|
||||
(after! org
|
||||
(add-to-list 'org-capture-templates
|
||||
'("b" "Bachelor todo" entry
|
||||
(file+headline "bachelor/todo.org" "Inbox")
|
||||
"* IDEA %?\n%i\n%T\n%a" :prepend t)
|
||||
))
|
||||
|
||||
|
||||
|
||||
(defun fd-org-notes-search-follow-symlinks (query)
|
||||
"Alternative to +default/org-notes-search which follows symbolic links for better project inlusion"
|
||||
(interactive
|
||||
(list (if (doom-region-active-p)
|
||||
(buffer-substring-no-properties
|
||||
(doom-region-beginning)
|
||||
(doom-region-end))
|
||||
"")))
|
||||
(require 'org)
|
||||
(+vertico-file-search :query query :in org-directory :args '("-L")))
|
||||
|
||||
(defun fd-org-latex-preview-buffer ()
|
||||
"Show latex preview for whole buffer by running org-latex-preview with C-u C-u"
|
||||
(interactive)
|
||||
(let ((current-prefix-arg '(16)))
|
||||
(call-interactively 'org-latex-preview)
|
||||
))
|
||||
|
||||
;; Custom time format display
|
||||
(setq-default org-display-custom-times t)
|
||||
(setq org-time-stamp-custom-formats '("<%d.%m.%Y %a>" . "<%d.%m.%Y %a %H:%M>"))
|
||||
|
||||
;; Enable org mode like header navigation
|
||||
(map! :map TeX-mode-map :nvi "<backtab>" #'outline-cycle-buffer)
|
||||
|
||||
(map! :map TeX-mode-map :nv "C-k" #'outline-backward-same-level)
|
||||
(map! :map TeX-mode-map :nv "C-j" #'outline-forward-same-level)
|
||||
(map! :map TeX-mode-map :nv "C-h" #'outline-up-heading)
|
||||
(map! :map TeX-mode-map :nv "C-l" #'outline-next-heading)
|
||||
|
||||
;; Fixes latexindent not finding perl libraries
|
||||
(setenv "PERL5LIB" "~/perl5/lib/perl5")
|
||||
|
||||
(setq +latex-viewers '(evince))
|
||||
|
||||
(use-package! lsp-ltex
|
||||
:after latex
|
||||
:init
|
||||
(setq lsp-ltex-enabled t)
|
||||
(setq lsp-ltex-language "en-US")
|
||||
(setq lsp-ltex-mother-tongue "de-DE"))
|
||||
|
||||
;; Do not automatically enable writegood mode
|
||||
(remove-hook! '(org-mode-hook markdown-mode-hook rst-mode-hook asciidoc-mode-hook latex-mode-hook LaTeX-mode-hook) #'writegood-mode)
|
||||
|
||||
;; Removing hooks for automatic spell checking set here: https://github.com/hlissner/doom-emacs/blob/develop/modules/checkers/spell/config.el
|
||||
(remove-hook! '(org-mode-hook
|
||||
markdown-mode-hook
|
||||
TeX-mode-hook
|
||||
rst-mode-hook
|
||||
mu4e-compose-mode-hook
|
||||
message-mode-hook
|
||||
git-commit-mode-hook)
|
||||
#'flyspell-mode)
|
||||
|
||||
(remove-hook! '(yaml-mode-hook
|
||||
conf-mode-hook
|
||||
prog-mode-hook)
|
||||
#'flyspell-prog-mode)
|
||||
|
||||
;; (setq ispell-dictionary "english")
|
||||
(setq ispell-personal-dictionary "~/ispell-personal-dictionary")
|
||||
|
||||
(map! :map doom-leader-toggle-map :desc "Toggle dictionary" "d" #'fd-switch-dictionary)
|
||||
|
||||
(defun fd-switch-dictionary()
|
||||
(interactive)
|
||||
(let* ((dic ispell-current-dictionary)
|
||||
(change (if (string= dic "german") "english" "german")))
|
||||
(ispell-change-dictionary change)
|
||||
(message "Dictionary switched from %s to %s" dic change)
|
||||
))
|
||||
|
||||
(set-flyspell-predicate! '(latex-mode)
|
||||
#'+latex-flyspell-word-p)
|
||||
|
||||
(defun +latex-flyspell-word-p ()
|
||||
"Return t if point is on a word that should be spell checked.
|
||||
|
||||
Return nil if on a link url, markup, html, or references."
|
||||
(let ((faces (ensure-list (get-text-property (point) 'face))))
|
||||
(or (and (memq 'font-lock-comment-face faces)
|
||||
(memq 'markdown-code-face faces))
|
||||
(not (cl-loop with unsafe-faces = '(font-lock-comment-face
|
||||
;; font-latex-math-face
|
||||
;; font-latex-string-face
|
||||
font-lock-keyword-face
|
||||
font-lock-constant-face
|
||||
font-lock-function-name-face
|
||||
font-lock-variable-name-face
|
||||
font-lock-type-face ;; figure captions
|
||||
)
|
||||
for face in faces
|
||||
if (memq face unsafe-faces)
|
||||
return t)))))
|
||||
|
||||
;; (setq lsp-dart-flutter-sdk-dir "~/snap/flutter/common/flutter")
|
||||
;; (map! :mode dart-mode :leader "r" #'flutter-run-or-hot-reload)
|
||||
|
||||
;; Make sniping simpler for german keyboard
|
||||
(setq evil-snipe-scope 'visible)
|
||||
(map! :map evil-snipe-override-mode-map :m "," #'evil-snipe-repeat)
|
||||
(map! :map evil-snipe-override-mode-map :m ";" #'evil-snipe-repeat-reverse)
|
||||
(map! :map evil-snipe-parent-transient-map "," #'evil-snipe-repeat)
|
||||
(map! :map evil-snipe-parent-transient-map ";" #'evil-snipe-repeat-reverse)
|
||||
|
||||
(add-hook 'matlab-mode-hook (lambda () (add-to-list 'quickrun-file-alist '("\\.m\\'" . "octave"))))
|
||||
;; (assq-delete-all "objc" quickrun-file-alist)
|
||||
|
||||
(quickrun-add-command "matlab"
|
||||
'((:command . "octave"))
|
||||
:mode #'matlab-mode
|
||||
)
|
||||
|
||||
(quickrun-add-command "octave"
|
||||
'((:command . "octave"))
|
||||
:mode #'octave-mode
|
||||
)
|
||||
|
||||
;; (autoload 'matlab-mode "matlab" "Matlab Editing Mode" t)
|
||||
(add-to-list
|
||||
'auto-mode-alist
|
||||
'("\\.m$" . matlab-mode))
|
||||
;; (setq matlab-indent-function t)
|
||||
;; (setq matlab-shell-command "/urs/local/bin/matlab")
|
||||
|
||||
(map! :desc "Toggle case of word" :nv "g C" #'toggle-word-case)
|
||||
|
||||
(defun toggle-word-case ()
|
||||
"Toggle the case of current word or text selection."
|
||||
|
||||
(interactive)
|
||||
(let (
|
||||
(deactivate-mark nil)
|
||||
$p1 $p2)
|
||||
(if (use-region-p)
|
||||
(setq $p1 (region-beginning) $p2 (region-end))
|
||||
(save-excursion
|
||||
(skip-chars-backward "[:alpha:]")
|
||||
(setq $p1 (point))
|
||||
(skip-chars-forward "[:alpha:]")
|
||||
(setq $p2 (point))))
|
||||
(let ((first-char-prop (get-char-code-property (char-after $p1) 'general-category)))
|
||||
(cond ((string= "Ll" first-char-prop) ; Lower case
|
||||
(upcase-region $p1 (+ $p1 1)))
|
||||
((string= "Lu" first-char-prop) ; Upper case
|
||||
(downcase-region $p1 (+ $p1 1)))
|
||||
(t (message "Word does not start with a alphabetic character"))))))
|
||||
|
||||
(add-hook 'tetris-mode-hook #'turn-off-evil-mode)
|
||||
|
||||
(map! :map 'doom-leader-project-map :desc "Repeat last command" "SPC" #'projectile-repeat-last-command)
|
||||
|
||||
(defun fd-pretty-print-dirty-json()
|
||||
(interactive)
|
||||
(let ((new-buffer-contents (shell-command-to-string (format "echo '%s' | newliner" (buffer-string)))))
|
||||
(erase-buffer)
|
||||
(insert new-buffer-contents)
|
||||
(evil-indent (buffer-end -1) (buffer-end +1)))
|
||||
)
|
||||
|
||||
(defun fd-inventory-transfer()
|
||||
(interactive)
|
||||
(fd-inventory-transfer-check-if-valid-table)
|
||||
(let ((location-from (string-trim (org-table-get 1 2)))
|
||||
(location-to (string-trim (org-table-get 1 3)))
|
||||
(item-name (string-trim (org-table-get-field 1))))
|
||||
(let (transfer-amount)
|
||||
(setq transfer-amount (read-number (concat "Transfer from " location-from " to " location-to ": ")))
|
||||
(fd-inventory-transfer-log-transfer transfer-amount item-name location-from location-to)
|
||||
(fd-inventory-transfer-do-transfer transfer-amount)
|
||||
(org-table-align)
|
||||
)))
|
||||
|
||||
(defun fd-inventory-transfer-check-if-valid-table ()
|
||||
(unless (org-at-table-p) (error "You are not inside a table"))
|
||||
(unless (and (string-match-p "^[[:blank:]]*-?[0-9]+[[:blank:]]*$" (org-table-get-field 2))
|
||||
(string-match-p "^[[:blank:]]*-?[0-9]+[[:blank:]]*$" (org-table-get-field 3)))
|
||||
(error "Amounts in table are not numbers"))
|
||||
(if (or (string= "" (org-table-get 1 2))
|
||||
(string= "" (org-table-get 1 3)))
|
||||
(error "No valid table header")))
|
||||
|
||||
(defun fd-inventory-transfer-do-transfer(amount)
|
||||
(let* ((amount-from-location (string-to-number (org-table-get-field 2)))
|
||||
(amount-to-location (string-to-number (org-table-get-field 3)))
|
||||
(amount-from-location-new (- amount-from-location amount))
|
||||
(amount-to-location-new (+ amount-to-location amount)))
|
||||
(progn (org-table-get-field 2 (number-to-string amount-from-location-new))
|
||||
(org-table-get-field 3 (number-to-string amount-to-location-new)))))
|
||||
|
||||
(defun fd-inventory-transfer-log-transfer(amount item-name from-location to-location)
|
||||
(save-excursion
|
||||
(let* ((log-heading-point (or (org-find-exact-headline-in-buffer "Transfer log" nil t)
|
||||
(progn (goto-char (org-table-end))
|
||||
(org-insert-heading)
|
||||
(insert "Transfer log")
|
||||
(point)))))
|
||||
(goto-char log-heading-point)
|
||||
(forward-line)
|
||||
(let ((message (concat "- " (format-time-string "%d.%m.%Y") ": *" (number-to-string amount) "* =" item-name "= from " from-location " to " to-location "\n")))
|
||||
(insert message))
|
||||
)))
|
||||
|
||||
(defun fd-python-to-latex(regionBegin regionEnd)
|
||||
(interactive (if (use-region-p)
|
||||
(list (region-beginning) (region-end))
|
||||
(list (point-min) (point-max))))
|
||||
(shell-command-on-region regionBegin regionEnd "python2latex"))
|
||||
|
||||
(set-docsets! 'haskell-mode "Haskell")
|
||||
|
||||
(setq! citar-bibliography '("~/Nextcloud/zotero-sources.bib"))
|
195
non-nix/emacs/doom/init.el
Normal file
195
non-nix/emacs/doom/init.el
Normal file
@ -0,0 +1,195 @@
|
||||
;;; init.el -*- lexical-binding: t; -*-
|
||||
|
||||
;; This file controls what Doom modules are enabled and what order they load
|
||||
;; in. Remember to run 'doom sync' after modifying it!
|
||||
|
||||
;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's
|
||||
;; documentation. There you'll find a link to Doom's Module Index where all
|
||||
;; of our modules are listed, including what flags they support.
|
||||
|
||||
;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or
|
||||
;; 'C-c c k' for non-vim users) to view its documentation. This works on
|
||||
;; flags as well (those symbols that start with a plus).
|
||||
;;
|
||||
;; Alternatively, press 'gd' (or 'C-c c d') on a module to browse its
|
||||
;; directory (for easy access to its source code).
|
||||
|
||||
(doom! :input
|
||||
;;bidi ; (tfel ot) thgir etirw uoy gnipleh
|
||||
;;chinese
|
||||
;;japanese
|
||||
;;layout ; auie,ctsrnm is the superior home row
|
||||
|
||||
:completion
|
||||
company ; the ultimate code completion backend
|
||||
;;helm ; the *other* search engine for love and life
|
||||
;;ido ; the other *other* search engine...
|
||||
;;ivy ; a search engine for love and life
|
||||
vertico ; the search engine of the future
|
||||
|
||||
:ui
|
||||
;;deft ; notational velocity for Emacs
|
||||
doom ; what makes DOOM look the way it does
|
||||
doom-dashboard ; a nifty splash screen for Emacs
|
||||
;;doom-quit ; DOOM quit-message prompts when you quit Emacs
|
||||
;;(emoji +unicode) ; 🙂
|
||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||
;;hydra
|
||||
;;indent-guides ; highlighted indent columns
|
||||
;;ligatures ; ligatures and symbols to make your code pretty again
|
||||
;;minimap ; show a map of the code on the side
|
||||
modeline ; snazzy, Atom-inspired modeline, plus API
|
||||
;;nav-flash ; blink cursor line after big motions
|
||||
;;neotree ; a project drawer, like NERDTree for vim
|
||||
ophints ; highlight the region an operation acts on
|
||||
(popup +defaults) ; tame sudden yet inevitable temporary windows
|
||||
;;tabs ; a tab bar for Emacs
|
||||
(treemacs +lsp) ; a project drawer, like neotree but cooler
|
||||
;;unicode ; extended unicode support for various languages
|
||||
(vc-gutter +pretty) ; vcs diff in the fringe
|
||||
vi-tilde-fringe ; fringe tildes to mark beyond EOB
|
||||
(window-select +numbers) ; visually switch windows
|
||||
workspaces ; tab emulation, persistence & separate workspaces
|
||||
;;zen ; distraction-free coding or writing
|
||||
|
||||
:editor
|
||||
(evil +everywhere) ; come to the dark side, we have cookies
|
||||
file-templates ; auto-snippets for empty files
|
||||
fold ; (nigh) universal code folding
|
||||
(format +onsave) ; automated prettiness
|
||||
;;god ; run Emacs commands without modifier keys
|
||||
;;lispy ; vim for lisp, for people who don't like vim
|
||||
;;multiple-cursors ; editing in many places at once
|
||||
;;objed ; text object editing for the innocent
|
||||
;;parinfer ; turn lisp into python, sort of
|
||||
;;rotate-text ; cycle region at point between text candidates
|
||||
snippets ; my elves. They type so I don't have to
|
||||
;;word-wrap ; soft wrapping with language-aware indent
|
||||
|
||||
:emacs
|
||||
dired ; making dired pretty [functional]
|
||||
electric ; smarter, keyword-based electric-indent
|
||||
;;ibuffer ; interactive buffer management
|
||||
undo ; persistent, smarter undo for your inevitable mistakes
|
||||
vc ; version-control and Emacs, sitting in a tree
|
||||
|
||||
:term
|
||||
;;eshell ; the elisp shell that works everywhere
|
||||
;;shell ; simple shell REPL for Emacs
|
||||
;;term ; basic terminal emulator for Emacs
|
||||
;;vterm ; the best terminal emulation in Emacs
|
||||
|
||||
:checkers
|
||||
syntax ; tasing you for every semicolon you forget
|
||||
(spell +flyspell +hunspell +everywhere) ; tasing you for misspelling mispelling
|
||||
;; grammar ; tasing grammar mistake every you make
|
||||
|
||||
:tools
|
||||
;; ansible
|
||||
biblio ; Writes a PhD for you (citation needed)
|
||||
;;collab ; buffers with friends
|
||||
;;debugger ; FIXME stepping through code, to help you add bugs
|
||||
direnv
|
||||
docker
|
||||
;;editorconfig ; let someone else argue about tabs vs spaces
|
||||
;; ein ; tame Jupyter notebooks with emacs
|
||||
(eval +overlay) ; run code, run (also, repls)
|
||||
;;gist ; interacting with github gists
|
||||
(lookup +docsets +dictionary) ; navigate your code and its documentation
|
||||
lsp ; M-x vscode
|
||||
magit ; a git porcelain for Emacs
|
||||
make ; run make tasks from Emacs
|
||||
;;pass ; password manager for nerds
|
||||
;;pdf ; pdf enhancements
|
||||
;;prodigy ; FIXME managing external services & code builders
|
||||
;;rgb ; creating color strings
|
||||
;;taskrunner ; taskrunner for all your projects
|
||||
;;terraform ; infrastructure as code
|
||||
;;tmux ; an API for interacting with tmux
|
||||
;;tree-sitter ; syntax and parsing, sitting in a tree...
|
||||
;;upload ; map local to remote projects via ssh/ftp
|
||||
|
||||
:os
|
||||
(:if IS-MAC macos) ; improve compatibility with macOS
|
||||
;;tty ; improve the terminal Emacs experience
|
||||
|
||||
:lang
|
||||
;;agda ; types of types of types of types...
|
||||
;;beancount ; mind the GAAP
|
||||
(cc +lsp) ; C > C++ == 1
|
||||
;;clojure ; java with a lisp
|
||||
;;common-lisp ; if you've seen one lisp, you've seen them all
|
||||
;;coq ; proofs-as-programs
|
||||
;;crystal ; ruby at the speed of c
|
||||
;;csharp ; unity, .NET, and mono shenanigans
|
||||
;;data ; config/data formats
|
||||
(dart +flutter) ; paint ui and not much else
|
||||
;;dhall
|
||||
;;elixir ; erlang done right
|
||||
;;elm ; care for a cup of TEA?
|
||||
emacs-lisp ; drown in parentheses
|
||||
;;erlang ; an elegant language for a more civilized age
|
||||
ess ; emacs speaks statistics
|
||||
;;factor
|
||||
;;faust ; dsp, but you get to keep your soul
|
||||
;;fortran ; in FORTRAN, GOD is REAL (unless declared INTEGER)
|
||||
;;fsharp ; ML stands for Microsoft's Language
|
||||
;;fstar ; (dependent) types and (monadic) effects and Z3
|
||||
;;gdscript ; the language you waited for
|
||||
(go +lsp) ; the hipster dialect
|
||||
;;(graphql +lsp) ; Give queries a REST
|
||||
(haskell +lsp) ; a language that's lazier than I am
|
||||
;;hy ; readability of scheme w/ speed of python
|
||||
;;idris ; a language you can depend on
|
||||
json ; At least it ain't XML
|
||||
(java +lsp) ; the poster child for carpal tunnel syndrome
|
||||
;;javascript ; all(hope(abandon(ye(who(enter(here))))))
|
||||
(julia +lsp +tree-sitter) ; a better, faster MATLAB
|
||||
;;kotlin ; a better, slicker Java(Script)
|
||||
(latex +lsp +latexmk) ; writing papers in Emacs has never been so fun
|
||||
;;lean ; for folks with too much to prove
|
||||
;;ledger ; be audit you can be
|
||||
;;lua ; one-based indices? one-based indices
|
||||
markdown ; writing docs for people to ignore
|
||||
;;nim ; python + lisp at the speed of c
|
||||
(nix +lsp) ; I hereby declare "nix geht mehr!"
|
||||
;;ocaml ; an objective camel
|
||||
(org +dragndrop +pandoc +pretty +roam2 +pomodoro +noter) ; organize your plain life in plain text
|
||||
;;php ; perl's insecure younger brother
|
||||
;;plantuml ; diagrams for confusing people more
|
||||
;;purescript ; javascript, but functional
|
||||
(python +lsp +pyright) ; beautiful is better than ugly
|
||||
;;qt ; the 'cutest' gui framework ever
|
||||
;;racket ; a DSL for DSLs
|
||||
;;raku ; the artist formerly known as perl6
|
||||
;;rest ; Emacs as a REST client
|
||||
;;rst ; ReST in peace
|
||||
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
||||
(rust +lsp +tree-sitter) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
||||
;;scala ; java, but good
|
||||
;;(scheme +guile) ; a fully conniving family of lisps
|
||||
sh ; she sells {ba,z,fi}sh shells on the C xor
|
||||
;;sml
|
||||
;;solidity ; do you need a blockchain? No.
|
||||
;;swift ; who asked for emoji variables?
|
||||
;;terra ; Earth and Moon in alignment for performance.
|
||||
;;web ; the tubes
|
||||
yaml ; JSON, but readable
|
||||
;;zig ; C, but simpler
|
||||
|
||||
:email
|
||||
;;(mu4e +org +gmail)
|
||||
;;notmuch
|
||||
;;(wanderlust +gmail)
|
||||
|
||||
:app
|
||||
calendar
|
||||
;;emms
|
||||
;;everywhere ; *leave* Emacs!? You must be joking
|
||||
;;irc ; how neckbeards socialize
|
||||
;;(rss +org) ; emacs as an RSS reader
|
||||
;;twitter ; twitter client https://twitter.com/vnought
|
||||
|
||||
:config
|
||||
;;literate
|
||||
(default +bindings +smartparens))
|
0
non-nix/emacs/doom/org-agenda-files
Normal file
0
non-nix/emacs/doom/org-agenda-files
Normal file
61
non-nix/emacs/doom/packages.el
Normal file
61
non-nix/emacs/doom/packages.el
Normal file
@ -0,0 +1,61 @@
|
||||
;; -*- no-byte-compile: t; -*-
|
||||
;;; $DOOMDIR/packages.el
|
||||
|
||||
;; To install a package with Doom you must declare them here and run 'doom sync'
|
||||
;; on the command line, then restart Emacs for the changes to take effect -- or
|
||||
;; use 'M-x doom/reload'.
|
||||
|
||||
|
||||
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
|
||||
;(package! some-package)
|
||||
|
||||
;; (package! company-quickhelp)
|
||||
|
||||
(package! github-tags) ;; Needed for lsp-ltex auto-install to work
|
||||
(package! lsp-ltex)
|
||||
|
||||
(package! org-roam-ui)
|
||||
(package! openwith)
|
||||
|
||||
;; To install a package directly from a remote git repo, you must specify a
|
||||
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
|
||||
;; https://github.com/raxod502/straight.el#the-recipe-format
|
||||
;(package! another-package
|
||||
; :recipe (:host github :repo "username/repo"))
|
||||
|
||||
(package! matlab
|
||||
:recipe (:repo "https://git.code.sf.net/p/matlab-emacs/src" ))
|
||||
|
||||
;; If the package you are trying to install does not contain a PACKAGENAME.el
|
||||
;; file, or is located in a subdirectory of the repo, you'll need to specify
|
||||
;; `:files' in the `:recipe':
|
||||
;(package! this-package
|
||||
; :recipe (:host github :repo "username/repo"
|
||||
; :files ("some-file.el" "src/lisp/*.el")))
|
||||
|
||||
;; If you'd like to disable a package included with Doom, you can do so here
|
||||
;; with the `:disable' property:
|
||||
;(package! builtin-package :disable t)
|
||||
|
||||
;; You can override the recipe of a built in package without having to specify
|
||||
;; all the properties for `:recipe'. These will inherit the rest of its recipe
|
||||
;; from Doom or MELPA/ELPA/Emacsmirror:
|
||||
;(package! builtin-package :recipe (:nonrecursive t))
|
||||
;(package! builtin-package-2 :recipe (:repo "myfork/package"))
|
||||
|
||||
;; Specify a `:branch' to install a package from a particular branch or tag.
|
||||
;; This is required for some packages whose default branch isn't 'master' (which
|
||||
;; our package manager can't deal with; see raxod502/straight.el#279)
|
||||
;(package! builtin-package :recipe (:branch "develop"))
|
||||
|
||||
;; Use `:pin' to specify a particular commit to install.
|
||||
;(package! builtin-package :pin "1a2b3c4d5e")
|
||||
|
||||
|
||||
;; Doom's packages are pinned to a specific commit and updated from release to
|
||||
;; release. The `unpin!' macro allows you to unpin single packages...
|
||||
;(unpin! pinned-package)
|
||||
;; ...or multiple packages
|
||||
;(unpin! pinned-package another-pinned-package)
|
||||
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
||||
;(unpin! t)
|
644
non-nix/emacs/spacemacs/.spacemacs
Normal file
644
non-nix/emacs/spacemacs/.spacemacs
Normal file
@ -0,0 +1,644 @@
|
||||
;; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||
;; 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
|
||||
'(csv
|
||||
python
|
||||
;; ----------------------------------------------------------------
|
||||
;; 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.
|
||||
;; ----------------------------------------------------------------
|
||||
;; (dart :variables dart-server-sdk-path "<flutter-path>/bin/cache/dart-sdk/")
|
||||
(csharp :variables
|
||||
csharp-backend nil)
|
||||
rust
|
||||
tabs
|
||||
auto-completion
|
||||
(auto-completion :variables
|
||||
auto-completion-return-key-behavior 'complete
|
||||
auto-completion-tab-key-behavior 'cycle
|
||||
auto-completion-complete-with-key-sequence nil
|
||||
auto-completion-complete-with-key-sequence-delay 0.1
|
||||
auto-completion-minimum-prefix-length 2
|
||||
auto-completion-idle-delay 0.2
|
||||
auto-completion-private-snippets-directory nil
|
||||
auto-completion-enable-snippets-in-popup nil
|
||||
auto-completion-enable-help-tooltip 't
|
||||
auto-completion-use-company-box nil
|
||||
auto-completion-enable-sort-by-usage nil)
|
||||
;; better-defaults
|
||||
emacs-lisp
|
||||
(git :variables
|
||||
git-magit-status-fullscreen t)
|
||||
helm
|
||||
(lsp :variables
|
||||
lsp-lens-enable t
|
||||
lsp-ui-doc-enable t)
|
||||
;; markdown
|
||||
multiple-cursors
|
||||
org
|
||||
;; (shell :variables
|
||||
;; shell-default-height 30
|
||||
;; shell-default-position 'bottom)
|
||||
(spell-checking :variables
|
||||
spell-checking-enable-by-default nil)
|
||||
syntax-checking
|
||||
;; version-control
|
||||
treemacs
|
||||
json
|
||||
(evil-snipe :variables evil-snipe-enable-alternate-f-and-t-behaviors t)
|
||||
)
|
||||
|
||||
|
||||
;; 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 '(format-all)
|
||||
|
||||
;; 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,
|
||||
before layer configuration.
|
||||
It should only modify the values of Spacemacs settings."
|
||||
;; This setq-default sexp is an exhaustive list of all the supported
|
||||
;; spacemacs settings.
|
||||
(setq-default
|
||||
;; If non-nil then enable support for the portable dumper. You'll need to
|
||||
;; compile Emacs 27 from source following the instructions in file
|
||||
;; EXPERIMENTAL.org at to root of the git repository.
|
||||
;;
|
||||
;; WARNING: pdumper does not work with Native Compilation, so it's disabled
|
||||
;; regardless of the following setting when native compilation is in effect.
|
||||
;;
|
||||
;; (default nil)
|
||||
dotspacemacs-enable-emacs-pdumper nil
|
||||
|
||||
;; Name of executable file pointing to emacs 27+. This executable must be
|
||||
;; in your PATH.
|
||||
;; (default "emacs")
|
||||
dotspacemacs-emacs-pdumper-executable-file "emacs"
|
||||
|
||||
;; Name of the Spacemacs dump file. This is the file will be created by the
|
||||
;; portable dumper in the cache directory under dumps sub-directory.
|
||||
;; To load it when starting Emacs add the parameter `--dump-file'
|
||||
;; when invoking Emacs 27.1 executable on the command line, for instance:
|
||||
;; ./emacs --dump-file=$HOME/.emacs.d/.cache/dumps/spacemacs-27.1.pdmp
|
||||
;; (default (format "spacemacs-%s.pdmp" emacs-version))
|
||||
dotspacemacs-emacs-dumper-dump-file (format "spacemacs-%s.pdmp" emacs-version)
|
||||
|
||||
;; If non-nil ELPA repositories are contacted via HTTPS whenever it's
|
||||
;; possible. Set it to nil if you have no way to use HTTPS in your
|
||||
;; environment, otherwise it is strongly recommended to let it set to t.
|
||||
;; This variable has no effect if Emacs is launched with the parameter
|
||||
;; `--insecure' which forces the value of this variable to nil.
|
||||
;; (default t)
|
||||
dotspacemacs-elpa-https t
|
||||
|
||||
;; Maximum allowed time in seconds to contact an ELPA repository.
|
||||
;; (default 5)
|
||||
dotspacemacs-elpa-timeout 5
|
||||
|
||||
;; Set `gc-cons-threshold' and `gc-cons-percentage' when startup finishes.
|
||||
;; This is an advanced option and should not be changed unless you suspect
|
||||
;; performance issues due to garbage collection operations.
|
||||
;; (default '(100000000 0.1))
|
||||
dotspacemacs-gc-cons '(100000000 0.1)
|
||||
|
||||
;; Set `read-process-output-max' when startup finishes.
|
||||
;; This defines how much data is read from a foreign process.
|
||||
;; Setting this >= 1 MB should increase performance for lsp servers
|
||||
;; in emacs 27.
|
||||
;; (default (* 1024 1024))
|
||||
dotspacemacs-read-process-output-max (* 1024 1024)
|
||||
|
||||
;; If non-nil then Spacelpa repository is the primary source to install
|
||||
;; a locked version of packages. If nil then Spacemacs will install the
|
||||
;; latest version of packages from MELPA. Spacelpa is currently in
|
||||
;; experimental state please use only for testing purposes.
|
||||
;; (default nil)
|
||||
dotspacemacs-use-spacelpa nil
|
||||
|
||||
;; If non-nil then verify the signature for downloaded Spacelpa archives.
|
||||
;; (default t)
|
||||
dotspacemacs-verify-spacelpa-archives t
|
||||
|
||||
;; If non-nil then spacemacs will check for updates at startup
|
||||
;; when the current branch is not `develop'. Note that checking for
|
||||
;; new versions works via git commands, thus it calls GitHub services
|
||||
;; whenever you start Emacs. (default nil)
|
||||
dotspacemacs-check-for-update nil
|
||||
|
||||
;; If non-nil, a form that evaluates to a package directory. For example, to
|
||||
;; use different package directories for different Emacs versions, set this
|
||||
;; to `emacs-version'. (default 'emacs-version)
|
||||
dotspacemacs-elpa-subdirectory 'emacs-version
|
||||
|
||||
;; One of `vim', `emacs' or `hybrid'.
|
||||
;; `hybrid' is like `vim' except that `insert state' is replaced by the
|
||||
;; `hybrid state' with `emacs' key bindings. The value can also be a list
|
||||
;; with `:variables' keyword (similar to layers). Check the editing styles
|
||||
;; section of the documentation for details on available variables.
|
||||
;; (default 'vim)
|
||||
dotspacemacs-editing-style 'vim
|
||||
|
||||
;; If non-nil show the version string in the Spacemacs buffer. It will
|
||||
;; appear as (spacemacs version)@(emacs version)
|
||||
;; (default t)
|
||||
dotspacemacs-startup-buffer-show-version t
|
||||
|
||||
;; Specify the startup banner. Default value is `official', it displays
|
||||
;; the official spacemacs logo. An integer value is the index of text
|
||||
;; banner, `random' chooses a random text banner in `core/banners'
|
||||
;; directory. A string value must be a path to an image format supported
|
||||
;; by your Emacs build.
|
||||
;; If the value is nil then no banner is displayed. (default 'official)
|
||||
dotspacemacs-startup-banner 'official
|
||||
|
||||
;; List of items to show in startup buffer or an association list of
|
||||
;; the form `(list-type . list-size)`. If nil then it is disabled.
|
||||
;; Possible values for list-type are:
|
||||
;; `recents' `recents-by-project' `bookmarks' `projects' `agenda' `todos'.
|
||||
;; List sizes may be nil, in which case
|
||||
;; `spacemacs-buffer-startup-lists-length' takes effect.
|
||||
;; The exceptional case is `recents-by-project', where list-type must be a
|
||||
;; pair of numbers, e.g. `(recents-by-project . (7 . 5))', where the first
|
||||
;; number is the project limit and the second the limit on the recent files
|
||||
;; within a project.
|
||||
dotspacemacs-startup-lists '((recents . 5)
|
||||
(projects . 7))
|
||||
|
||||
;; True if the home buffer should respond to resize events. (default t)
|
||||
dotspacemacs-startup-buffer-responsive t
|
||||
|
||||
;; Show numbers before the startup list lines. (default t)
|
||||
dotspacemacs-show-startup-list-numbers t
|
||||
|
||||
;; The minimum delay in seconds between number key presses. (default 0.4)
|
||||
dotspacemacs-startup-buffer-multi-digit-delay 0.4
|
||||
|
||||
;; If non-nil, show file icons for entries and headings on Spacemacs home buffer.
|
||||
;; This has no effect in terminal or if "all-the-icons" package or the font
|
||||
;; is not installed. (default nil)
|
||||
dotspacemacs-startup-buffer-show-icons nil
|
||||
|
||||
;; Default major mode for a new empty buffer. Possible values are mode
|
||||
;; names such as `text-mode'; and `nil' to use Fundamental mode.
|
||||
;; (default `text-mode')
|
||||
dotspacemacs-new-empty-buffer-major-mode 'text-mode
|
||||
|
||||
;; Default major mode of the scratch buffer (default `text-mode')
|
||||
dotspacemacs-scratch-mode 'text-mode
|
||||
|
||||
;; If non-nil, *scratch* buffer will be persistent. Things you write down in
|
||||
;; *scratch* buffer will be saved and restored automatically.
|
||||
dotspacemacs-scratch-buffer-persistent nil
|
||||
|
||||
;; If non-nil, `kill-buffer' on *scratch* buffer
|
||||
;; will bury it instead of killing.
|
||||
dotspacemacs-scratch-buffer-unkillable nil
|
||||
|
||||
;; Initial message in the scratch buffer, such as "Welcome to Spacemacs!"
|
||||
;; (default nil)
|
||||
dotspacemacs-initial-scratch-message nil
|
||||
|
||||
;; List of themes, the first of the list is loaded when spacemacs starts.
|
||||
;; Press `SPC T n' to cycle to the next theme in the list (works great
|
||||
;; with 2 themes variants, one dark and one light)
|
||||
dotspacemacs-themes '(spacemacs-dark
|
||||
spacemacs-light)
|
||||
|
||||
;; Set the theme for the Spaceline. Supported themes are `spacemacs',
|
||||
;; `all-the-icons', `custom', `doom', `vim-powerline' and `vanilla'. The
|
||||
;; first three are spaceline themes. `doom' is the doom-emacs mode-line.
|
||||
;; `vanilla' is default Emacs mode-line. `custom' is a user defined themes,
|
||||
;; refer to the DOCUMENTATION.org for more info on how to create your own
|
||||
;; spaceline theme. Value can be a symbol or list with additional properties.
|
||||
;; (default '(spacemacs :separator wave :separator-scale 1.5))
|
||||
dotspacemacs-mode-line-theme '(spacemacs :separator wave :separator-scale 1.5)
|
||||
|
||||
;; If non-nil the cursor color matches the state color in GUI Emacs.
|
||||
;; (default t)
|
||||
dotspacemacs-colorize-cursor-according-to-state t
|
||||
|
||||
;; Default font or prioritized list of fonts. The `:size' can be specified as
|
||||
;; a non-negative integer (pixel size), or a floating-point (point size).
|
||||
;; Point size is recommended, because it's device independent. (default 10.0)
|
||||
dotspacemacs-default-font '("Source Code Pro"
|
||||
:size 11.0
|
||||
:weight normal
|
||||
:width normal)
|
||||
|
||||
;; The leader key (default "SPC")
|
||||
dotspacemacs-leader-key "SPC"
|
||||
|
||||
;; The key used for Emacs commands `M-x' (after pressing on the leader key).
|
||||
;; (default "SPC")
|
||||
dotspacemacs-emacs-command-key "SPC"
|
||||
|
||||
;; The key used for Vim Ex commands (default ":")
|
||||
dotspacemacs-ex-command-key ":"
|
||||
|
||||
;; The leader key accessible in `emacs state' and `insert state'
|
||||
;; (default "M-m")
|
||||
dotspacemacs-emacs-leader-key "M-m"
|
||||
|
||||
;; Major mode leader key is a shortcut key which is the equivalent of
|
||||
;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",")
|
||||
dotspacemacs-major-mode-leader-key ","
|
||||
|
||||
;; Major mode leader key accessible in `emacs state' and `insert state'.
|
||||
;; (default "C-M-m" for terminal mode, "<M-return>" for GUI mode).
|
||||
;; Thus M-RET should work as leader key in both GUI and terminal modes.
|
||||
;; C-M-m also should work in terminal mode, but not in GUI mode.
|
||||
dotspacemacs-major-mode-emacs-leader-key (if window-system "<M-return>" "C-M-m")
|
||||
|
||||
;; These variables control whether separate commands are bound in the GUI to
|
||||
;; the key pairs `C-i', `TAB' and `C-m', `RET'.
|
||||
;; Setting it to a non-nil value, allows for separate commands under `C-i'
|
||||
;; and TAB or `C-m' and `RET'.
|
||||
;; In the terminal, these pairs are generally indistinguishable, so this only
|
||||
;; works in the GUI. (default nil)
|
||||
dotspacemacs-distinguish-gui-tab nil
|
||||
|
||||
;; Name of the default layout (default "Default")
|
||||
dotspacemacs-default-layout-name "Default"
|
||||
|
||||
;; If non-nil the default layout name is displayed in the mode-line.
|
||||
;; (default nil)
|
||||
dotspacemacs-display-default-layout nil
|
||||
|
||||
;; If non-nil then the last auto saved layouts are resumed automatically upon
|
||||
;; start. (default nil)
|
||||
dotspacemacs-auto-resume-layouts nil
|
||||
|
||||
;; If non-nil, auto-generate layout name when creating new layouts. Only has
|
||||
;; effect when using the "jump to layout by number" commands. (default nil)
|
||||
dotspacemacs-auto-generate-layout-names nil
|
||||
|
||||
;; Size (in MB) above which spacemacs will prompt to open the large file
|
||||
;; literally to avoid performance issues. Opening a file literally means that
|
||||
;; no major mode or minor modes are active. (default is 1)
|
||||
dotspacemacs-large-file-size 1
|
||||
|
||||
;; Location where to auto-save files. Possible values are `original' to
|
||||
;; auto-save the file in-place, `cache' to auto-save the file to another
|
||||
;; file stored in the cache directory and `nil' to disable auto-saving.
|
||||
;; (default 'cache)
|
||||
dotspacemacs-auto-save-file-location 'cache
|
||||
|
||||
;; Maximum number of rollback slots to keep in the cache. (default 5)
|
||||
dotspacemacs-max-rollback-slots 5
|
||||
|
||||
;; If non-nil, the paste transient-state is enabled. While enabled, after you
|
||||
;; paste something, pressing `C-j' and `C-k' several times cycles through the
|
||||
;; elements in the `kill-ring'. (default nil)
|
||||
dotspacemacs-enable-paste-transient-state nil
|
||||
|
||||
;; Which-key delay in seconds. The which-key buffer is the popup listing
|
||||
;; the commands bound to the current keystroke sequence. (default 0.4)
|
||||
dotspacemacs-which-key-delay 0.4
|
||||
|
||||
;; Which-key frame position. Possible values are `right', `bottom' and
|
||||
;; `right-then-bottom'. right-then-bottom tries to display the frame to the
|
||||
;; right; if there is insufficient space it displays it at the bottom.
|
||||
;; (default 'bottom)
|
||||
dotspacemacs-which-key-position 'bottom
|
||||
|
||||
;; Control where `switch-to-buffer' displays the buffer. If nil,
|
||||
;; `switch-to-buffer' displays the buffer in the current window even if
|
||||
;; another same-purpose window is available. If non-nil, `switch-to-buffer'
|
||||
;; displays the buffer in a same-purpose window even if the buffer can be
|
||||
;; displayed in the current window. (default nil)
|
||||
dotspacemacs-switch-to-buffer-prefers-purpose nil
|
||||
|
||||
;; If non-nil a progress bar is displayed when spacemacs is loading. This
|
||||
;; may increase the boot time on some systems and emacs builds, set it to
|
||||
;; nil to boost the loading time. (default t)
|
||||
dotspacemacs-loading-progress-bar t
|
||||
|
||||
;; If non-nil the frame is fullscreen when Emacs starts up. (default nil)
|
||||
;; (Emacs 24.4+ only)
|
||||
dotspacemacs-fullscreen-at-startup nil
|
||||
|
||||
;; If non-nil `spacemacs/toggle-fullscreen' will not use native fullscreen.
|
||||
;; Use to disable fullscreen animations in OSX. (default nil)
|
||||
dotspacemacs-fullscreen-use-non-native nil
|
||||
|
||||
;; If non-nil the frame is maximized when Emacs starts up.
|
||||
;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.
|
||||
;; (default nil) (Emacs 24.4+ only)
|
||||
dotspacemacs-maximized-at-startup nil
|
||||
|
||||
;; If non-nil the frame is undecorated when Emacs starts up. Combine this
|
||||
;; variable with `dotspacemacs-maximized-at-startup' in OSX to obtain
|
||||
;; borderless fullscreen. (default nil)
|
||||
dotspacemacs-undecorated-at-startup nil
|
||||
|
||||
;; A value from the range (0..100), in increasing opacity, which describes
|
||||
;; the transparency level of a frame when it's active or selected.
|
||||
;; Transparency can be toggled through `toggle-transparency'. (default 90)
|
||||
dotspacemacs-active-transparency 90
|
||||
|
||||
;; A value from the range (0..100), in increasing opacity, which describes
|
||||
;; the transparency level of a frame when it's inactive or deselected.
|
||||
;; Transparency can be toggled through `toggle-transparency'. (default 90)
|
||||
dotspacemacs-inactive-transparency 90
|
||||
|
||||
;; If non-nil show the titles of transient states. (default t)
|
||||
dotspacemacs-show-transient-state-title t
|
||||
|
||||
;; If non-nil show the color guide hint for transient state keys. (default t)
|
||||
dotspacemacs-show-transient-state-color-guide t
|
||||
|
||||
;; If non-nil unicode symbols are displayed in the mode line.
|
||||
;; If you use Emacs as a daemon and wants unicode characters only in GUI set
|
||||
;; the value to quoted `display-graphic-p'. (default t)
|
||||
dotspacemacs-mode-line-unicode-symbols t
|
||||
|
||||
;; If non-nil smooth scrolling (native-scrolling) is enabled. Smooth
|
||||
;; scrolling overrides the default behavior of Emacs which recenters point
|
||||
;; when it reaches the top or bottom of the screen. (default t)
|
||||
dotspacemacs-smooth-scrolling t
|
||||
|
||||
;; Show the scroll bar while scrolling. The auto hide time can be configured
|
||||
;; by setting this variable to a number. (default t)
|
||||
dotspacemacs-scroll-bar-while-scrolling t
|
||||
|
||||
;; Control line numbers activation.
|
||||
;; If set to `t', `relative' or `visual' then line numbers are enabled in all
|
||||
;; `prog-mode' and `text-mode' derivatives. If set to `relative', line
|
||||
;; numbers are relative. If set to `visual', line numbers are also relative,
|
||||
;; but only visual lines are counted. For example, folded lines will not be
|
||||
;; counted and wrapped lines are counted as multiple lines.
|
||||
;; This variable can also be set to a property list for finer control:
|
||||
;; '(:relative nil
|
||||
;; :visual nil
|
||||
;; :disabled-for-modes dired-mode
|
||||
;; doc-view-mode
|
||||
;; markdown-mode
|
||||
;; org-mode
|
||||
;; pdf-view-mode
|
||||
;; text-mode
|
||||
;; :size-limit-kb 1000)
|
||||
;; When used in a plist, `visual' takes precedence over `relative'.
|
||||
;; (default nil)
|
||||
dotspacemacs-line-numbers nil
|
||||
|
||||
;; Code folding method. Possible values are `evil', `origami' and `vimish'.
|
||||
;; (default 'evil)
|
||||
dotspacemacs-folding-method 'evil
|
||||
|
||||
;; If non-nil and `dotspacemacs-activate-smartparens-mode' is also non-nil,
|
||||
;; `smartparens-strict-mode' will be enabled in programming modes.
|
||||
;; (default nil)
|
||||
dotspacemacs-smartparens-strict-mode nil
|
||||
|
||||
;; If non-nil smartparens-mode will be enabled in programming modes.
|
||||
;; (default t)
|
||||
dotspacemacs-activate-smartparens-mode t
|
||||
|
||||
;; If non-nil pressing the closing parenthesis `)' key in insert mode passes
|
||||
;; over any automatically added closing parenthesis, bracket, quote, etc...
|
||||
;; This can be temporary disabled by pressing `C-q' before `)'. (default nil)
|
||||
dotspacemacs-smart-closing-parenthesis nil
|
||||
|
||||
;; Select a scope to highlight delimiters. Possible values are `any',
|
||||
;; `current', `all' or `nil'. Default is `all' (highlight any scope and
|
||||
;; emphasis the current one). (default 'all)
|
||||
dotspacemacs-highlight-delimiters 'all
|
||||
|
||||
;; If non-nil, start an Emacs server if one is not already running.
|
||||
;; (default nil)
|
||||
dotspacemacs-enable-server nil
|
||||
|
||||
;; Set the emacs server socket location.
|
||||
;; If nil, uses whatever the Emacs default is, otherwise a directory path
|
||||
;; like \"~/.emacs.d/server\". It has no effect if
|
||||
;; `dotspacemacs-enable-server' is nil.
|
||||
;; (default nil)
|
||||
dotspacemacs-server-socket-dir nil
|
||||
|
||||
;; If non-nil, advise quit functions to keep server open when quitting.
|
||||
;; (default nil)
|
||||
dotspacemacs-persistent-server nil
|
||||
|
||||
;; List of search tool executable names. Spacemacs uses the first installed
|
||||
;; tool of the list. Supported tools are `rg', `ag', `pt', `ack' and `grep'.
|
||||
;; (default '("rg" "ag" "pt" "ack" "grep"))
|
||||
dotspacemacs-search-tools '("rg" "ag" "pt" "ack" "grep")
|
||||
|
||||
;; Format specification for setting the frame title.
|
||||
;; %a - the `abbreviated-file-name', or `buffer-name'
|
||||
;; %t - `projectile-project-name'
|
||||
;; %I - `invocation-name'
|
||||
;; %S - `system-name'
|
||||
;; %U - contents of $USER
|
||||
;; %b - buffer name
|
||||
;; %f - visited file name
|
||||
;; %F - frame name
|
||||
;; %s - process status
|
||||
;; %p - percent of buffer above top of window, or Top, Bot or All
|
||||
;; %P - percent of buffer above bottom of window, perhaps plus Top, or Bot or All
|
||||
;; %m - mode name
|
||||
;; %n - Narrow if appropriate
|
||||
;; %z - mnemonics of buffer, terminal, and keyboard coding systems
|
||||
;; %Z - like %z, but including the end-of-line format
|
||||
;; If nil then Spacemacs uses default `frame-title-format' to avoid
|
||||
;; performance issues, instead of calculating the frame title by
|
||||
;; `spacemacs/title-prepare' all the time.
|
||||
;; (default "%I@%S")
|
||||
dotspacemacs-frame-title-format "%I@%S"
|
||||
|
||||
;; Format specification for setting the icon title format
|
||||
;; (default nil - same as frame-title-format)
|
||||
dotspacemacs-icon-title-format nil
|
||||
|
||||
;; Show trailing whitespace (default t)
|
||||
dotspacemacs-show-trailing-whitespace t
|
||||
|
||||
;; Delete whitespace while saving buffer. Possible values are `all'
|
||||
;; to aggressively delete empty line and long sequences of whitespace,
|
||||
;; `trailing' to delete only the whitespace at end of lines, `changed' to
|
||||
;; delete only whitespace for changed lines or `nil' to disable cleanup.
|
||||
;; (default nil)
|
||||
dotspacemacs-whitespace-cleanup nil
|
||||
|
||||
;; If non-nil activate `clean-aindent-mode' which tries to correct
|
||||
;; virtual indentation of simple modes. This can interfere with mode specific
|
||||
;; indent handling like has been reported for `go-mode'.
|
||||
;; If it does deactivate it here.
|
||||
;; (default t)
|
||||
dotspacemacs-use-clean-aindent-mode t
|
||||
|
||||
;; Accept SPC as y for prompts if non-nil. (default nil)
|
||||
dotspacemacs-use-SPC-as-y nil
|
||||
|
||||
;; If non-nil shift your number row to match the entered keyboard layout
|
||||
;; (only in insert state). Currently supported keyboard layouts are:
|
||||
;; `qwerty-us', `qwertz-de' and `querty-ca-fr'.
|
||||
;; New layouts can be added in `spacemacs-editing' layer.
|
||||
;; (default nil)
|
||||
dotspacemacs-swap-number-row nil
|
||||
|
||||
;; Either nil or a number of seconds. If non-nil zone out after the specified
|
||||
;; number of seconds. (default nil)
|
||||
dotspacemacs-zone-out-when-idle nil
|
||||
|
||||
;; Run `spacemacs/prettify-org-buffer' when
|
||||
;; visiting README.org files of Spacemacs.
|
||||
;; (default nil)
|
||||
dotspacemacs-pretty-docs nil
|
||||
|
||||
;; If nil the home buffer shows the full path of agenda items
|
||||
;; and todos. If non-nil only the file name is shown.
|
||||
dotspacemacs-home-shorten-agenda-source nil
|
||||
|
||||
;; If non-nil then byte-compile some of Spacemacs files.
|
||||
dotspacemacs-byte-compile nil))
|
||||
|
||||
(defun dotspacemacs/user-env ()
|
||||
"Environment variables setup.
|
||||
This function defines the environment variables for your Emacs session. By
|
||||
default it calls `spacemacs/load-spacemacs-env' which loads the environment
|
||||
variables declared in `~/.spacemacs.env' or `~/.spacemacs.d/.spacemacs.env'.
|
||||
See the header of this file for more information."
|
||||
(spacemacs/load-spacemacs-env)
|
||||
)
|
||||
|
||||
(defun dotspacemacs/user-init ()
|
||||
"Initialization for user code:
|
||||
This function is called immediately after `dotspacemacs/init', before layer
|
||||
configuration.
|
||||
It is mostly for variables that should be set before packages are loaded.
|
||||
If you are unsure, try setting them in `dotspacemacs/user-config' first."
|
||||
)
|
||||
|
||||
|
||||
(defun dotspacemacs/user-load ()
|
||||
"Library to load while dumping.
|
||||
This function is called only while dumping Spacemacs configuration. You can
|
||||
`require' or `load' the libraries of your choice that will be included in the
|
||||
dump."
|
||||
)
|
||||
|
||||
|
||||
(defun dotspacemacs/user-config ()
|
||||
"Configuration for user code:
|
||||
This function is called at the very end of Spacemacs startup, after layer
|
||||
configuration.
|
||||
Put your configuration code here, except for variables that should be set
|
||||
before packages are loaded."
|
||||
(setq rust-format-on-save t)
|
||||
;; (global-set-key (kbd "M-1") 'evil-jump-forward)
|
||||
;; (setq centaur-tabs-show-count t)
|
||||
(define-key winum-keymap (kbd "M-1") 'tab-bar-switch-to-tab)
|
||||
;; (evil-define-key '(normal) nil (kbd "C-i") 'evil-jump-forward)
|
||||
(define-key evil-motion-state-map (kbd "C-i") 'evil-jump-forward)
|
||||
(evil-define-key* '(normal insert visual) 'global (kbd "C-s") 'escape-and-save)
|
||||
(evil-define-key* '(normal visual) 'global (kbd "gD") 'lsp-find-references)
|
||||
|
||||
(global-set-key (kbd "C--") 'spacemacs/scale-down-font)
|
||||
(global-set-key (kbd "C-+") 'spacemacs/scale-up-font)
|
||||
(global-set-key (kbd "C-=") 'spacemacs/reset-font-size)
|
||||
|
||||
(spacemacs/set-leader-keys "." 'lazy-helm/spacemacs/helm-find-files)
|
||||
(spacemacs/set-leader-keys ":" 'helm-projectile-find-file)
|
||||
(spacemacs/declare-prefix "o" "open external")
|
||||
(spacemacs/set-leader-keys "ot" 'open-external-terminal)
|
||||
|
||||
(spacemacs/set-leader-keys "gg" 'magit-status)
|
||||
(spacemacs/set-leader-keys "ee" 'flycheck-explain-error-at-point)
|
||||
;; (spacemacs/set-leader-keys "br" '(revert-buffer nil nil))
|
||||
|
||||
(setq evil-escape-key-sequence "kj")
|
||||
|
||||
(defun open-external-terminal ()
|
||||
"Open external terminal"
|
||||
(interactive)
|
||||
(call-process-shell-command "alacritty&" nil 0))
|
||||
|
||||
(defun escape-and-save()
|
||||
"Evil escape and then save buffer"
|
||||
(interactive)
|
||||
(evil-escape)
|
||||
(condition-case nil
|
||||
(format-all-buffer)
|
||||
(error nil))
|
||||
(save-buffer))
|
||||
|
||||
)
|
||||
|
||||
;; Do not write anything past this comment. This is where Emacs will
|
||||
;; auto-generate custom variable definitions.
|
||||
(defun dotspacemacs/emacs-custom-settings ()
|
||||
"Emacs custom settings.
|
||||
This is an auto-generated function, do not modify its content directly, use
|
||||
Emacs customize menu instead.
|
||||
This function is called at the very end of Spacemacs initialization."
|
||||
(custom-set-variables
|
||||
;; custom-set-variables was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(evil-want-Y-yank-to-eol nil)
|
||||
'(org-babel-load-languages '((csharp . t) (emacs-lisp)))
|
||||
'(package-selected-packages
|
||||
'(csv-mode yapfify sphinx-doc pytest pyenv-mode pydoc py-isort poetry pippel pipenv pyvenv pip-requirements nose lsp-python-ms lsp-pyright live-py-mode importmagic epc ctable concurrent deferred helm-pydoc helm-cscope xcscope cython-mode company-anaconda blacken anaconda-mode pythonic evil-snipe omnisharp csharp-mode web-beautify prettier-js json-reformat json-navigator hierarchy json-mode json-snatcher format-all language-id inheritenv company-quickhelp stickyfunc-enhance srefactor yasnippet-snippets treemacs-magit smeargle orgit-forge orgit org-rich-yank org-projectile org-category-capture org-present org-pomodoro alert log4e gntp org-mime org-download org-contrib org-cliplink org lsp-ui lsp-origami origami htmlize helm-org-rifle helm-lsp helm-git-grep helm-company helm-c-yasnippet gnuplot gitignore-templates git-timemachine git-modes git-messenger git-link fuzzy forge yaml magit ghub closql emacsql-sqlite emacsql treepy magit-section git-commit with-editor transient flyspell-correct-helm flyspell-correct flycheck-pos-tip evil-org centaur-tabs auto-yasnippet yasnippet auto-dictionary ac-ispell auto-complete toml-mode ron-mode racer pos-tip rust-mode helm-gtags ggtags flycheck-rust dap-mode lsp-treemacs bui lsp-mode counsel-gtags counsel swiper ivy company cargo markdown-mode ws-butler writeroom-mode winum which-key volatile-highlights vi-tilde-fringe uuidgen use-package undo-tree treemacs-projectile treemacs-persp treemacs-icons-dired treemacs-evil toc-org symon symbol-overlay string-inflection string-edit spaceline-all-the-icons restart-emacs request rainbow-delimiters quickrun popwin pcre2el password-generator paradox overseer org-superstar open-junk-file nameless multi-line macrostep lorem-ipsum link-hint inspector info+ indent-guide hybrid-mode hungry-delete hl-todo highlight-parentheses highlight-numbers highlight-indentation hide-comnt helm-xref helm-themes helm-swoop helm-purpose helm-projectile helm-org helm-mode-manager helm-make helm-ls-git helm-flx helm-descbinds helm-ag google-translate golden-ratio font-lock+ flycheck-package flycheck-elsa flx-ido fancy-battery eyebrowse expand-region evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-textobj-line evil-terminal-cursor-changer evil-surround evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state evil-lion evil-indent-plus evil-iedit-state evil-goggles evil-exchange evil-escape evil-ediff evil-easymotion evil-collection evil-cleverparens evil-args evil-anzu eval-sexp-fu emr elisp-slime-nav elisp-def editorconfig dumb-jump drag-stuff dotenv-mode dired-quick-sort diminish devdocs define-word column-enforce-mode clean-aindent-mode centered-cursor-mode auto-highlight-symbol auto-compile aggressive-indent ace-link ace-jump-helm-line)))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(highlight-parentheses-highlight ((nil (:weight ultra-bold))) t))
|
||||
)
|
Reference in New Issue
Block a user