snippets!
This commit is contained in:
parent
95fb7c92c7
commit
76a100e3a2
|
@ -99,3 +99,11 @@
|
|||
(add-hook 'web-mode-hook 'emmet-mode)) ; If you use web-mode
|
||||
(after! emmet-mode
|
||||
(define-key emmet-mode-keymap (kbd "C-j") 'emmet-expand-line))
|
||||
;; Org Src block
|
||||
(after! org
|
||||
(define-abbrev org-mode-abbrev-table "osb"
|
||||
'(lambda () (insert "#+BEGIN_SRC ")
|
||||
(backward-char 13)
|
||||
(insert "\n\n#+END_SRC")
|
||||
(forward-char 13)))
|
||||
(abbrev-mode 1)) ;; enable abbrev mode
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#+BEGIN_SRC ${1:lang}
|
||||
${2:code}
|
||||
#+END_SRC
|
Loading…
Reference in New Issue