Update config

This commit is contained in:
2021-05-02 11:27:39 +02:00
parent 500ec4bd54
commit 71a0c2601d
18 changed files with 1086 additions and 946 deletions

View File

@@ -155,7 +155,8 @@ Tables:
** Evil
#+begin_src emacs-lisp
(after! evil
(map! :m "-" #'dired-jump))
(map! :m "-" #'dired-jump)
(setq evil-respect-visual-line-mode nil))
#+end_src
Make movement keys work like they should
@@ -171,6 +172,9 @@ Make horizontal movement cross lines
(setq-default evil-cross-lines t)
#+end_src
;; In org-mode, $ does not go to the real end of line, it jumps to the end of /visual/ line
;; Create a real end of line by APPENDING and then going back to normal state
Evil Surround (not working):
#+begin_src emacs-lisp :tangle no
;; this macro was copied from here: https://stackoverflow.com/a/22418983/4921402
@@ -1099,7 +1103,7 @@ by spaces.
:image-output-type "png"
:image-size-adjust (1.0 . 1.0)
:latex-compiler ("pdflatex -interaction nonstopmode -output-directory %o %f")
:image-converter ("convert -density %D -trim -antialias %f -quality 100 %O"))
:image-converter ("convert -density 100 -trim -antialias %f -quality 100 %O"))
(dvipng
:programs ("latex" "dvipng")
:description "dvi > png"
@@ -1109,6 +1113,24 @@ by spaces.
:image-size-adjust (0.4 . 0.4)
:latex-compiler ("latex -interaction nonstopmode -output-directory %o %f")
:image-converter ("dvipng -D %D -T tight -o %O %f"))
(pdf2svg
:programs ("pdflatex" "pdftocairo" "pdfcrop")
:description "pdf > png"
:message "you need to install the programs: pdflatex, pdftocairo and pdfcrop."
:image-input-type "pdf"
:image-output-type "svg"
:image-size-adjust (1.0 . 1.0)
:latex-compiler ("pdflatex -interaction nonstopmode -output-directory %o %f")
:image-converter ("pdfcrop %f %f && pdf2svg %f %O"))
(pdf2dvi
:programs ("pdflatex" "dvipng")
:description "pdf > png"
:message "you need to install the programs: pdflatex, pdftocairo and pdfcrop."
:image-input-type "dvi"
:image-output-type "png"
:image-size-adjust (0.4 . 0.4)
:latex-compiler ("pdflatex -output-format dvi -interaction nonstopmode -output-directory %o %f")
:image-converter ("dvipng -D %D -T tight -o %O %f"))
(dvisvgm
:programs ("xetex" "dvisvgm")
:description "xdv > svg"
@@ -1121,7 +1143,7 @@ by spaces.
))
;; Use imagemagick/dvisvgm to generate png from pdf
(setq org-preview-latex-default-process 'dvisvgm)
(setq org-preview-latex-default-process 'pdf2svg)
;; Don't change the font size for subscripts and superscripts in latex fragments.
;; This cause the orgmode tables not to be well aligned.
@@ -3323,8 +3345,7 @@ Choose account label to feed msmtp -a option based on From header in Message buf
(javascript
+lsp)
(latex
+latexmk
+lsp)
+latexmk)
;; markdown ; writing docs for people to ignore
(org ; organize your plain life in plain text
+dragndrop ; drag & drop files/images into org buffers