Whitespaces, no flyspell in prog, bigger gc

This commit is contained in:
Marco Thomas
2021-07-20 11:24:43 +02:00
parent 6d0b3481c9
commit 9925fef43b

View File

@@ -93,15 +93,14 @@
(if (executable-find "hunspell") (if (executable-find "hunspell")
(use-package ispell (use-package ispell
:config :config
(setq ispell-program-name "hunspell") (setq ispell-program-name "hunspell"
(setq ispell-dictionary "de_DE,en_GB,en_US") ispell-dictionary "de_DE,en_GB,en_US")
(ispell-set-spellchecker-params) (ispell-set-spellchecker-params)
(ispell-hunspell-add-multi-dic "de_DE,en_GB,en_US") (ispell-hunspell-add-multi-dic "de_DE,en_GB,en_US")
:hook :hook
(org-mode . flyspell-mode) (org-mode . flyspell-mode)
(markdown-mode . flyspell-mode) (markdown-mode . flyspell-mode)
(text-mode . flyspell-mode) (text-mode . flyspell-mode)))
(prog-mode . flyspell-prog-mode)))
;; Themes and icons ;; Themes and icons
(use-package doom-themes (use-package doom-themes
@@ -117,8 +116,8 @@
(use-package doom-modeline (use-package doom-modeline
:ensure t :ensure t
:init :init
(doom-modeline-mode 1) (setq doom-modeline-height 25)
(setq doom-modeline-height 25)) (doom-modeline-mode 1))
;; show color codes ;; show color codes
(use-package rainbow-mode (use-package rainbow-mode
@@ -172,8 +171,10 @@
;; Help to find keybindings ;; Help to find keybindings
(use-package which-key (use-package which-key
:ensure t :ensure t
:init (which-key-mode) :init
:diminish which-key-mode (which-key-mode)
:diminish
(which-key-mode)
:config :config
(setq which-key-idle-delay 1)) (setq which-key-idle-delay 1))
@@ -181,10 +182,11 @@
(use-package fill-column-indicator (use-package fill-column-indicator
:ensure t :ensure t
:defer 1 :defer 1
:diminish fci-mode :diminish
(fci-mode)
:config :config
(setq fci-rule-width 1) (setq fci-rule-width 1
(setq fci-rule-color "#cc241d") fci-rule-color "#cc241d")
:hook :hook
(prog-mode . fci-mode) (prog-mode . fci-mode)
(markdown-mode . fci-mode)) (markdown-mode . fci-mode))
@@ -198,11 +200,12 @@
(:map evil-insert-state-map (:map evil-insert-state-map
("C-y" . nil)) ("C-y" . nil))
:init :init
(setq evil-toggle-key "C-~") ;; so C-z works for background ;; so C-z works for background
(setq evil-want-C-d-scroll t) (setq evil-toggle-key "C-~"
(setq evil-want-C-u-scroll t) evil-want-C-d-scroll t
(setq evil-want-integration t) evil-want-C-u-scroll t
(setq evil-want-keybinding nil) evil-want-integration t
evil-want-keybinding nil)
:config :config
(evil-mode)) (evil-mode))
@@ -257,30 +260,30 @@
:hook :hook
(org-mode . (lambda () (electric-indent-local-mode -1))) (org-mode . (lambda () (electric-indent-local-mode -1)))
:config :config
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5)) (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5)
(setq org-agenda-files (quote ("~/org"))) org-agenda-files (quote ("~/org"))
(setq org-directory "~/org") org-directory "~/org"
(setq org-latex-listings 'minted org-latex-listings 'minted
org-latex-packages-alist '(("" "minted")) org-latex-packages-alist '(("" "minted"))
org-latex-pdf-process org-latex-pdf-process
'("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" '("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f")) "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
:init :init
(setq org-todo-keywords '((sequence "TODO" "PROGRESS" "|" "DONE"))) (setq org-todo-keywords '((sequence "TODO" "PROGRESS" "|" "DONE"))
(setq org-log-done 'time) org-log-done 'time
(setq org-capture-templates org-capture-templates
(quote (("j" "Japanese" entry (file "~/org/japanese.org") "* TODO %?\n") (quote (("j" "Japanese" entry (file "~/org/japanese.org") "* TODO %?\n")
("u" "University" entry (file "~/org/uni.org") "* TODO %?\n") ("u" "University" entry (file "~/org/uni.org") "* TODO %?\n")
("p" "Personal" entry (file "~/org/personal.org") "* TODO %?\n")))) ("p" "Personal" entry (file "~/org/personal.org") "* TODO %?\n")))
(setq org-edit-src-content-indentation 0)) org-edit-src-content-indentation 0))
;; enable languages for inline evaluation ;; enable languages for inline evaluation
(org-babel-do-load-languages (org-babel-do-load-languages
'org-babel-load-languages '((python . t) 'org-babel-load-languages '((python . t)
(shell . t) (shell . t)
(C . t) (C . t)
(dot . t))) (dot . t)))
; don't ask me every time! ; don't ask me every time!
(defun my-org-confirm-babel-evaluate (lang body) (defun my-org-confirm-babel-evaluate (lang body)
(not (member lang '("python" "shell" "C" "dot")))) (not (member lang '("python" "shell" "C" "dot"))))
@@ -290,7 +293,8 @@
(use-package org-bullets (use-package org-bullets
:ensure t :ensure t
:after org :after org
:hook (org-mode . org-bullets-mode) :hook
(org-mode . org-bullets-mode)
:custom :custom
(org-bullets-bullet-list '("" "" "" "" "" "" ""))) (org-bullets-bullet-list '("" "" "" "" "" "" "")))
@@ -323,13 +327,11 @@
:ensure t :ensure t
:defer t :defer t
:config :config
(progn (progn (setq treemacs-follow-after-init t
(setq treemacs-persist-file (expand-file-name ".cache/treemacs-persist" user-emacs-directory)
treemacs-follow-after-init t treemacs-width 40
treemacs-persist-file (expand-file-name ".cache/treemacs-persist" user-emacs-directory) treemacs-project-follow-cleanup t)
treemacs-width 40 (treemacs-follow-mode t))
treemacs-project-follow-cleanup t)
(treemacs-follow-mode t))
:bind :bind
(:map global-map (:map global-map
("C-x t t" . treemacs))) ("C-x t t" . treemacs)))
@@ -350,15 +352,15 @@
:ensure t :ensure t
:commands (lsp lsp-deferred) :commands (lsp lsp-deferred)
:init :init
(setq lsp-keymap-prefix "C-l") (setq lsp-keymap-prefix "C-l"
(setq gc-cons-threshold (* 100 1024 1024)) gc-cons-threshold (* 200 1024 1024)
(setq read-process-output-max (* 3 1024 1024)) read-process-output-max (* 3 1024 1024))
:config :config
(lsp-enable-which-key-integration t) (lsp-enable-which-key-integration t)
(setq lsp-rust-server 'rust-analyzer) (setq lsp-rust-server 'rust-analyzer
(setq lsp-auto-guess-root t) lsp-auto-guess-root t
(setq lsp-idle-delay 1.) lsp-idle-delay 1
(setq lsp-enable-file-watchers nil) lsp-enable-file-watchers nil)
:hook :hook
(rust-mode . lsp) (rust-mode . lsp)
(java-mode . lsp) (java-mode . lsp)
@@ -369,10 +371,10 @@
(use-package lsp-ui (use-package lsp-ui
:ensure t :ensure t
:config :config
(setq lsp-ui-peek-enable nil) (setq lsp-ui-peek-enable nil
(setq lsp-ui-sideline-show-code-actions nil) lsp-ui-sideline-show-code-actions nil
(setq lsp-modeline-code-actions-enable nil) lsp-modeline-code-actions-enable nil
(setq lsp-ui-doc-enable nil)) lsp-ui-doc-enable nil))
;; Tags ;; Tags
(use-package lsp-ivy (use-package lsp-ivy
@@ -392,15 +394,15 @@
(company-minimum-prefix-length 2) (company-minimum-prefix-length 2)
(company-idle-delay 0.5) (company-idle-delay 0.5)
:bind (:map company-active-map :bind (:map company-active-map
("C-j" . company-select-next-or-abort) ;; down ("C-j" . company-select-next-or-abort) ;; down
("C-k" . company-select-previous-or-abort) ;; up ("C-k" . company-select-previous-or-abort) ;; up
("C-l" . company-complete-selection) ;; right, as in complete towards the right ("C-l" . company-complete-selection))) ;; right, as in complete towards the right
))
;; Frontend for company ;; Frontend for company
(use-package company-box (use-package company-box
:ensure t :ensure t
:hook (company-mode . company-box-mode)) :hook
(company-mode . company-box-mode))
;; project support ;; project support
(use-package projectile (use-package projectile
@@ -447,10 +449,10 @@
:hook :hook
(rust-mode . prettify-symbols-mode) (rust-mode . prettify-symbols-mode)
(rust-mode . (lambda () (rust-mode . (lambda ()
(push '("->" . ?→) prettify-symbols-alist) (push '("->" . ?→) prettify-symbols-alist)
(push '("=>" . ?⇒) prettify-symbols-alist) (push '("=>" . ?⇒) prettify-symbols-alist)
(push '("!=" . ?≠) prettify-symbols-alist) (push '("!=" . ?≠) prettify-symbols-alist)
(push '("<=" . ?≤) prettify-symbols-alist) (push '("<=" . ?≤) prettify-symbols-alist)
(push '(">=" . ?≥) prettify-symbols-alist)))) (push '(">=" . ?≥) prettify-symbols-alist))))
;; LaTeX ;; LaTeX
@@ -458,9 +460,9 @@
:ensure t :ensure t
:defer t :defer t
:init :init
(setq TeX-auto-save t) (setq TeX-auto-save t
(setq TeX-parse-self t) TeX-parse-self t
(setq preview-scale-function 1.5)) preview-scale-function 1.5))
;; Math Symbols ;; Math Symbols
(use-package math-symbol-lists (use-package math-symbol-lists
@@ -478,7 +480,7 @@
("=>" ?⇒) ("=>" ?⇒)
("<->" ?↔) ("<->" ?↔)
("<=>" ?⇔) ("<=>" ?⇔)
; quantors ; Quantoren
("\\ex" ?∃) ("\\ex" ?∃)
("\\all" ?∀) ("\\all" ?∀)
; sets of numbers ; sets of numbers
@@ -492,8 +494,10 @@
(mapc (lambda (x) (mapc (lambda (x)
(if (cddr x) (if (cddr x)
(quail-defrule (cadr x) (car (cddr x))))) (quail-defrule (cadr x) (car (cddr x)))))
(append math-symbol-list-basic math-symbol-list-extended math-symbol-list-superscripts math-symbol-list-subscripts)) (append math-symbol-list-basic
) math-symbol-list-extended
math-symbol-list-superscripts
math-symbol-list-subscripts)))
;; Java ;; Java
(use-package lsp-java (use-package lsp-java
@@ -503,9 +507,9 @@
(add-hook 'java-mode-hook 'prettify-symbols-mode) (add-hook 'java-mode-hook 'prettify-symbols-mode)
(add-hook 'java-mode-hook (lambda () (add-hook 'java-mode-hook (lambda ()
(push '("!=" . ?≠) prettify-symbols-alist) (push '("!=" . ?≠) prettify-symbols-alist)
(push '("<=" . ?≤) prettify-symbols-alist) (push '("<=" . ?≤) prettify-symbols-alist)
(push '(">=" . ?≥) prettify-symbols-alist))) (push '(">=" . ?≥) prettify-symbols-alist)))
;; Haskell ;; Haskell
(use-package haskell-mode (use-package haskell-mode
@@ -533,8 +537,8 @@
:hook :hook
(emacs-everywhere-mode . (lambda () (set-input-method "math"))) (emacs-everywhere-mode . (lambda () (set-input-method "math")))
:config :config
(setq emacs-everywhere-markdown-apps nil) (setq emacs-everywhere-markdown-apps nil
(setq emacs-everywhere-markdown-windows nil)) emacs-everywhere-markdown-windows nil))
;; load local file ;; load local file
(when (file-exists-p "~/.emacs.d/local.el") (when (file-exists-p "~/.emacs.d/local.el")