Fix yasnippet org src blocks
This commit is contained in:
parent
2614eb1f3d
commit
d79f8e9e1c
21
init.el
21
init.el
|
@ -246,8 +246,7 @@
|
||||||
lisp-interaction-mode
|
lisp-interaction-mode
|
||||||
scheme-mode
|
scheme-mode
|
||||||
clojure-mode
|
clojure-mode
|
||||||
nix-mode
|
nix-mode)
|
||||||
org-mode)
|
|
||||||
:config
|
:config
|
||||||
(with-eval-after-load 'meow
|
(with-eval-after-load 'meow
|
||||||
(add-to-list 'aggressive-indent-protected-commands #'my-meow-undo)
|
(add-to-list 'aggressive-indent-protected-commands #'my-meow-undo)
|
||||||
|
@ -284,7 +283,13 @@
|
||||||
|
|
||||||
(use-package yasnippet
|
(use-package yasnippet
|
||||||
:config
|
:config
|
||||||
(yas-global-mode))
|
(yas-global-mode)
|
||||||
|
(advice-add #'yas-expand-snippet
|
||||||
|
:around
|
||||||
|
(lambda (oldfun &rest r)
|
||||||
|
(let ((org-src-tab-acts-natively nil))
|
||||||
|
(apply oldfun r)))
|
||||||
|
'((name . my--yas-expand-disable-org-tab-native))))
|
||||||
|
|
||||||
(use-package yasnippet-snippets)
|
(use-package yasnippet-snippets)
|
||||||
|
|
||||||
|
@ -392,7 +397,6 @@
|
||||||
(buffer-face-mode))
|
(buffer-face-mode))
|
||||||
|
|
||||||
(use-package org
|
(use-package org
|
||||||
:mode ("\\.org$" . org-mode)
|
|
||||||
:hook ((org-mode . org-indent-mode)
|
:hook ((org-mode . org-indent-mode)
|
||||||
(org-mode . auto-fill-mode)
|
(org-mode . auto-fill-mode)
|
||||||
(org-mode . set-text-modes-font))
|
(org-mode . set-text-modes-font))
|
||||||
|
@ -404,7 +408,8 @@
|
||||||
(org-latex-compiler "lualatex")
|
(org-latex-compiler "lualatex")
|
||||||
(org-preview-latex-default-process 'dvisvgm)
|
(org-preview-latex-default-process 'dvisvgm)
|
||||||
:config
|
:config
|
||||||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.1)))
|
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.1))
|
||||||
|
(add-to-list 'org-modules 'org-tempo))
|
||||||
|
|
||||||
(use-package org-superstar
|
(use-package org-superstar
|
||||||
:custom
|
:custom
|
||||||
|
@ -420,16 +425,14 @@
|
||||||
(editorconfig-mode)
|
(editorconfig-mode)
|
||||||
(setcar (cdr (assq 'editorconfig-mode minor-mode-alist)) " EdConf"))
|
(setcar (cdr (assq 'editorconfig-mode minor-mode-alist)) " EdConf"))
|
||||||
|
|
||||||
(use-package nix-mode
|
(use-package nix-mode)
|
||||||
:mode "\\.nix'")
|
|
||||||
|
|
||||||
(use-package markdown-mode
|
(use-package markdown-mode
|
||||||
:mode ("README\\.md\\'" . gfm-mode)
|
:mode ("README\\.md\\'" . gfm-mode)
|
||||||
:custom
|
:custom
|
||||||
(markdown-command '("pandoc" "--from=markdown" "--to=html5")))
|
(markdown-command '("pandoc" "--from=markdown" "--to=html5")))
|
||||||
|
|
||||||
(use-package meson-mode
|
(use-package meson-mode)
|
||||||
:mode "/meson\\(\\.build\\|_options\\.txt\\)\\'")
|
|
||||||
|
|
||||||
(use-package minimap
|
(use-package minimap
|
||||||
:commands minimap-mode
|
:commands minimap-mode
|
||||||
|
|
Loading…
Reference in a new issue