began new doom emacs config
This commit is contained in:
@@ -26,4 +26,13 @@ KEYMAP=de-latin1
|
|||||||
Follow guide [here](https://wiki.archlinux.org/title/Xorg/Keyboard_configuration#Using_localectl)
|
Follow guide [here](https://wiki.archlinux.org/title/Xorg/Keyboard_configuration#Using_localectl)
|
||||||
``` bash
|
``` bash
|
||||||
sudo localectl set-x11-keymap de
|
sudo localectl set-x11-keymap de
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Doom Emacs
|
||||||
|
1. emacs and optional dependencies should be included in `pkglist.txt`
|
||||||
|
2. [install](https://github.com/doomemacs/doomemacs/tree/master#install) [Doom Emacs](https://github.com/doomemacs/doomemacs)
|
||||||
|
```bash
|
||||||
|
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
|
||||||
|
~/.config/emacs/bin/doom install
|
||||||
|
```
|
||||||
|
3. activate `literate` in `init.el` to be able to use the `config.org` file
|
||||||
@@ -17,6 +17,10 @@
|
|||||||
- [[#user-information][User Information]]
|
- [[#user-information][User Information]]
|
||||||
- [[#visual-settings][Visual Settings]]
|
- [[#visual-settings][Visual Settings]]
|
||||||
- [[#org-mode][Org Mode]]
|
- [[#org-mode][Org Mode]]
|
||||||
|
- [[#multilanguage-spellcheck][Multilanguage Spellcheck]]
|
||||||
|
- [[#latex][LaTeX]]
|
||||||
|
- [[#set-pdf-viewer][Set PDF Viewer]]
|
||||||
|
- [[#add-auto-compile-hook-for-tex-mode][Add auto-compile hook for TeX mode]]
|
||||||
|
|
||||||
* Config File Headers
|
* Config File Headers
|
||||||
We start by simply defining the standard headers used by the three files. These headers come from the initial files generated by =doom install=, and contain either some Emacs-LISP relevant indicators like =lexical-binding=, or instructions about the contents of the file.
|
We start by simply defining the standard headers used by the three files. These headers come from the initial files generated by =doom install=, and contain either some Emacs-LISP relevant indicators like =lexical-binding=, or instructions about the contents of the file.
|
||||||
@@ -235,8 +239,8 @@ We start by simply defining the standard headers used by the three files. These
|
|||||||
|
|
||||||
:checkers
|
:checkers
|
||||||
syntax ; tasing you for every semicolon you forget
|
syntax ; tasing you for every semicolon you forget
|
||||||
;; (spell +flyspell +everywhere) ; tasing you for misspelling mispelling
|
(spell +flyspell +everywhere) ; tasing you for misspelling mispelling
|
||||||
;; grammar ; tasing grammar mistake every you make
|
grammar ; tasing grammar mistake every you make
|
||||||
|
|
||||||
:tools
|
:tools
|
||||||
;;ansible
|
;;ansible
|
||||||
@@ -300,7 +304,7 @@ We start by simply defining the standard headers used by the three files. These
|
|||||||
;;javascript ; all(hope(abandon(ye(who(enter(here))))))
|
;;javascript ; all(hope(abandon(ye(who(enter(here))))))
|
||||||
;;julia ; a better, faster MATLAB
|
;;julia ; a better, faster MATLAB
|
||||||
;;kotlin ; a better, slicker Java(Script)
|
;;kotlin ; a better, slicker Java(Script)
|
||||||
latex ; writing papers in Emacs has never been so fun
|
(latex +fold +latexmk +lsp) ; writing papers in Emacs has never been so fun
|
||||||
;;lean ; for folks with too much to prove
|
;;lean ; for folks with too much to prove
|
||||||
;;ledger ; be audit you can be
|
;;ledger ; be audit you can be
|
||||||
;;lua ; one-based indices? one-based indices
|
;;lua ; one-based indices? one-based indices
|
||||||
@@ -349,6 +353,8 @@ We start by simply defining the standard headers used by the three files. These
|
|||||||
(default +bindings +smartparens))
|
(default +bindings +smartparens))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
#+RESULTS:
|
||||||
|
|
||||||
* General Configuration
|
* General Configuration
|
||||||
** User Information
|
** User Information
|
||||||
#+begin_src emacs-lisp :tangle config.el
|
#+begin_src emacs-lisp :tangle config.el
|
||||||
@@ -383,6 +389,27 @@ Until I get used to the [[https://github.com/Greduan/emacs-theme-gruvbox][evil-s
|
|||||||
|
|
||||||
** Org Mode
|
** Org Mode
|
||||||
I would like to keep org at the default location
|
I would like to keep org at the default location
|
||||||
#+begin_src
|
#+begin_src emacs-lisp :tangle config.el
|
||||||
(setq org-directory "~/org/")
|
(setq org-directory "~/org/")
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
* Multilanguage Spellcheck
|
||||||
|
Enables use of multiple dictionaries. In my case German and English
|
||||||
|
#+begin_src emacs-lisp :tangle config.el
|
||||||
|
(with-eval-after-load "ispell"
|
||||||
|
(setq ispell-program-name "hunspell")
|
||||||
|
(setq ispell-dictionary "en_US,de_DE")
|
||||||
|
(ispell-set-spellchecker-params)
|
||||||
|
(ispell-hunspell-add-multi-dic "en_US,de_DE"))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
* LaTeX
|
||||||
|
** Set PDF Viewer
|
||||||
|
#+begin_src emacs-lisp :tangle config.el
|
||||||
|
(setq +latex-viewers '(zathura))
|
||||||
|
#+end_src
|
||||||
|
** Add auto-compile hook for TeX mode
|
||||||
|
#+begin_src emacs-lisp :tangle config.el
|
||||||
|
(add-hook 'tex-mode-hook
|
||||||
|
(lambda () (add-hook 'after-save-hook 'Tex-command-master)))
|
||||||
|
#+end_src
|
||||||
|
|||||||
Reference in New Issue
Block a user