Org: fix <>
and add block-type completion
This commit is contained in:
parent
1780315620
commit
470d2b8e45
@ -600,6 +600,8 @@ targets."
|
|||||||
(add-hook 'after-save-hook
|
(add-hook 'after-save-hook
|
||||||
(lambda () (if (equal major-mode 'org-mode)
|
(lambda () (if (equal major-mode 'org-mode)
|
||||||
(org-babel-tangle))))
|
(org-babel-tangle))))
|
||||||
|
(remove '(?< . ?>) electric-pair-pairs)
|
||||||
|
(electric-pair-mode -1)
|
||||||
(defvar org-electric-pairs '((?_ . ?_)
|
(defvar org-electric-pairs '((?_ . ?_)
|
||||||
(?/ . ?/)
|
(?/ . ?/)
|
||||||
(?* . ?*)
|
(?* . ?*)
|
||||||
@ -639,7 +641,17 @@ See https://emacs.stackexchange.com/questions/2538/how-to-define-additional-mode
|
|||||||
"*" 'mitch/org-dwim-char
|
"*" 'mitch/org-dwim-char
|
||||||
"+" 'mitch/org-dwim-char
|
"+" 'mitch/org-dwim-char
|
||||||
"~" 'mitch/org-dwim-char
|
"~" 'mitch/org-dwim-char
|
||||||
"=" 'mitch/org-dwim-char))
|
"=" 'mitch/org-dwim-char)
|
||||||
|
(general-define-key
|
||||||
|
:states 'normal
|
||||||
|
:keymaps 'org-src-mode-map
|
||||||
|
"ZZ" 'org-edit-src-exit))
|
||||||
|
(elpaca-use-package (org-block-capf
|
||||||
|
:host github
|
||||||
|
:repo "xenodium/org-block-capf")
|
||||||
|
:after org
|
||||||
|
:init (add-hook 'org-mode-hook
|
||||||
|
#'org-block-capf-add-to-completion-at-point-functions))
|
||||||
|
|
||||||
(elpaca-use-package org-tempo
|
(elpaca-use-package org-tempo
|
||||||
:ensure nil
|
:ensure nil
|
||||||
|
Loading…
Reference in New Issue
Block a user