diff --git a/init.org b/init.org index d70bd69..193429d 100644 --- a/init.org +++ b/init.org @@ -26,6 +26,7 @@ - beancount configuration from config.org - CONTINUE TODO from config.org at Programming - all-the-icons? + * Header :PROPERTIES: :ID: a14d7c89-24ea-41ae-b185-944bab49aa02 @@ -34,6 +35,7 @@ Emacs variables are dynamically scoped. That's unusual for most languages, so di #+begin_src emacs-lisp ;;; init.el --- -*- lexical-binding: t -*- #+end_src + * First start :PROPERTIES: :ID: 1c24d48e-0124-4a0b-8e78-82e4c531e818 @@ -116,6 +118,7 @@ Maybe turn it on again at some point before the next major emacs upgrade #+begin_src emacs-lisp (setq byte-compile-warnings '(cl-functions)) #+end_src + * Default settings :PROPERTIES: :ID: 3512d679-d111-4ccd-8372-6fc2acbc0374 @@ -244,6 +247,7 @@ Some windows specific stuff (when (boundp 'w32-get-true-file-attributes) (setq w32-get-true-file-attributes nil))) #+END_SRC + * visuals ** Font :PROPERTIES: @@ -282,6 +286,7 @@ Windows Theme: (when *sys/linux* (load-theme 'plastic)) #+END_SRC + ** line wrappings :PROPERTIES: :ID: 14ae933e-2941-4cc3-82de-38f90f91bfd3 @@ -300,6 +305,7 @@ Windows Theme: ; (adaptive-wrap-prefix-mode (if visual-line-mode 1 -1))) ; (add-hook 'visual-line-mode-hook 'my/activate-adaptive-wrap-prefix-mode))) #+END_SRC + ** line numbers :PROPERTIES: :ID: 7b969436-98c9-4b61-ba7a-9fb22c9781ad @@ -316,6 +322,7 @@ Windows Theme: display-line-numbers-widen t)) ; (add-hook 'emacs-lisp-mode-hook 'display-line-numbers-mode) #+END_SRC + ** misc :PROPERTIES: :ID: a2873138-16ee-4990-89a2-26eab778ea74 @@ -335,6 +342,7 @@ Windows Theme: :ensure t :hook ((prog-mode . rainbow-delimiters-mode))) #+END_SRC + * undo :PROPERTIES: :ID: d57621b2-5472-4c89-a520-b4133db0b9af @@ -346,6 +354,7 @@ Windows Theme: :init (global-undo-tree-mode 1)) #+END_SRC + * ace-window #+begin_src emacs-lisp (use-package ace-window @@ -354,6 +363,7 @@ Windows Theme: (:map global-map ("C-x o" . ace-window))) #+end_src + * imenu-list :PROPERTIES: :ID: 0ae27ec9-5d77-43cf-ac76-5e12cc959046 @@ -373,8 +383,11 @@ Windows Theme: :bind (:map global-map ([f9] . imenu-list-smart-toggle)) + :custom + (org-imenu-depth 4) ) #+END_SRC + * which-key :PROPERTIES: :ID: a880f079-b3a3-4706-bf1e-5f6c680101f1 @@ -403,6 +416,7 @@ Windows Theme: :config (evil-mode 1)) #+END_SRC + * General (key mapper) :PROPERTIES: :ID: a20f183f-d41a-4dff-bc37-3bc4e25c8036 @@ -412,12 +426,14 @@ Windows Theme: :ensure t) (general-define-key + :states 'normal :keymaps 'imenu-list-major-mode-map - (kbd "RET") '(imenu-list-goto-entry :which-key "goto") - (kbd "TAB") '(hs-toggle-hiding :which-key "collapse") + "RET" '(imenu-list-goto-entry :which-key "goto") + "TAB" '(hs-toggle-hiding :which-key "collapse") "d" '(imenu-list-display-entry :which-key "show") "q" '(imenu-list-quit-window :which-key "quit")) #+END_SRC + * ivy / counsel / swiper :PROPERTIES: :ID: 55c74ba9-7761-4545-8ddd-087d6ee33e4b @@ -477,6 +493,7 @@ Windows Theme: (use-package autorevert :diminish auto-revert-mode) #+end_src + * company :PROPERTIES: :ID: 944563b6-b04a-44f2-9b21-a6a3e200867c @@ -526,7 +543,7 @@ Windows Theme: :defer t :init (add-hook 'company-mode-hook 'company-box-mode)) -#+END_SRC +#+END_SRC ** company backends :PROPERTIES: @@ -549,6 +566,7 @@ Windows Theme: (set (make-local-variable 'company-backends) '(company-beancount))) #+END_SRC + * orgmode ** org :PROPERTIES: @@ -694,6 +712,7 @@ Another setup, because org-babel-do-load-languages requires eager loading (org-babel-execute:scheme org-babel-expand-body:scheme)) #+end_src + ** habits :PROPERTIES: :ID: fcc91d0a-d040-4910-b2cf-3221496a3842 @@ -706,6 +725,7 @@ Another setup, because org-babel-do-load-languages requires eager loading org-habit-following-days 7 org-habit-show-habits-only-for-today nil) #+END_SRC + ** org-id :PROPERTIES: :ID: c4017c45-d650-410c-8bd4-bc3cf42bbbb9 @@ -791,6 +811,7 @@ Vorerst deaktiviert, Nutzen evtl. nicht vorhanden ;; org-caldav-inbox (expand-file-name "~/Archiv/Organisieren/caldav-inbox") ;; org-caldav-files (concat MY--PATH_ORG_FILES "tasks"))) #+END_SRC + ** journal :PROPERTIES: :ID: a1951e18-d862-4198-9652-016e979053c8 @@ -817,6 +838,7 @@ Vorerst deaktiviert, Nutzen evtl. nicht vorhanden :diminish eldoc-mode :defer t) #+end_src + ** Magit / Git :PROPERTIES: :ID: d3589460-317f-40f6-9056-053be9ba3217 @@ -867,7 +889,8 @@ TODO Unterverzeichnisse wurden noch nicht getestet (lsp-prefer-flymake nil) ; use flycheck instead (lsp-file-watch-threshold 5000) (lsb-print-performance t) - (lsp-log-io t) + (lsp-log-io nil) ; enable log only for debug + (lsp-enable-folding t) ; default, maybe evil-matchit instead for performance? (lsp-diagnostics-modeline-scope :project) (lsp-enable-file-watchers nil) :bind (:map lsp-mode-map ("C-c C-f" . lsp-format-buffer)) @@ -946,6 +969,7 @@ With hippie expand I am able to use yasnippet and emmet at the same time with th (setq hippie-expand-try-functions-list '(yas-hippie-try-expand emmet-expand-line))) #+end_src + ** flycheck :PROPERTIES: :ID: 3d8f2547-c5b3-46d0-91b0-9667f9ee5c47 @@ -1029,6 +1053,7 @@ Manage projects and jump quickly between its files (require 'smartparens-config)) #+END_SRC + ** lisp :PROPERTIES: :ID: a2bc3e08-b203-49d3-b337-fb186a14eecb @@ -1036,6 +1061,7 @@ Manage projects and jump quickly between its files #+BEGIN_SRC emacs-lisp (add-hook 'emacs-lisp-mode-hook 'company/elisp-mode-hook) #+END_SRC + ** web :PROPERTIES: :ID: c0b0b4e4-2162-429f-b80d-6e5334b1290e @@ -1083,6 +1109,7 @@ Default completion is C-j :config (unbind-key "C-" emmet-mode-keymap)) #+end_src + ** YAML :PROPERTIES: :ID: 95413247-04d5-4e02-8431-06c162ec8f3b @@ -1094,6 +1121,7 @@ Default completion is C-j :defer t :mode ("\\.yml$" . yaml-mode)) #+end_src + ** R #+BEGIN_SRC emacs-lisp (use-package ess @@ -1254,6 +1282,7 @@ Start fava with fava my_file.beancount It is accessable on this URL: [[http://127.0.0.1:5000][Fava]] Beancount-mode can start fava and open the URL right away. + * Stuff after everything else Set garbage collector to a smaller value to let it kick in faster. Maybe a problem on Windows?