emacs: ensure tempel and tempel-collection
This commit is contained in:
parent
b44cea8e19
commit
f581da480a
|
@ -622,6 +622,7 @@
|
||||||
|
|
||||||
;; Configure Tempel
|
;; Configure Tempel
|
||||||
(use-package tempel
|
(use-package tempel
|
||||||
|
:ensure t
|
||||||
;; Require trigger prefix before template name when completing.
|
;; Require trigger prefix before template name when completing.
|
||||||
:custom
|
:custom
|
||||||
(tempel-trigger-prefix "<")
|
(tempel-trigger-prefix "<")
|
||||||
|
@ -650,13 +651,12 @@
|
||||||
|
|
||||||
;; Optionally make the Tempel templates available to Abbrev,
|
;; Optionally make the Tempel templates available to Abbrev,
|
||||||
;; either locally or globally. `expand-abbrev' is bound to C-x '.
|
;; either locally or globally. `expand-abbrev' is bound to C-x '.
|
||||||
(add-hook 'prog-mode-hook #'tempel-abbrev-mode)
|
(add-hook 'prog-mode-hook #'tempel-abbrev-mode))
|
||||||
(global-tempel-abbrev-mode)
|
|
||||||
)
|
|
||||||
|
|
||||||
;; Optional: Add tempel-collection.
|
;; Optional: Add tempel-collection.
|
||||||
;; The package is young and doesn't have comprehensive coverage.
|
;; The package is young and doesn't have comprehensive coverage.
|
||||||
(use-package tempel-collection)
|
(use-package tempel-collection
|
||||||
|
:ensure t)
|
||||||
|
|
||||||
(use-package aggressive-indent
|
(use-package aggressive-indent
|
||||||
:ensure t
|
:ensure t
|
||||||
|
|
|
@ -747,6 +747,7 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
;; Configure Tempel
|
;; Configure Tempel
|
||||||
(use-package tempel
|
(use-package tempel
|
||||||
|
:ensure t
|
||||||
;; Require trigger prefix before template name when completing.
|
;; Require trigger prefix before template name when completing.
|
||||||
:custom
|
:custom
|
||||||
(tempel-trigger-prefix "<")
|
(tempel-trigger-prefix "<")
|
||||||
|
@ -775,13 +776,12 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
|
||||||
|
|
||||||
;; Optionally make the Tempel templates available to Abbrev,
|
;; Optionally make the Tempel templates available to Abbrev,
|
||||||
;; either locally or globally. `expand-abbrev' is bound to C-x '.
|
;; either locally or globally. `expand-abbrev' is bound to C-x '.
|
||||||
(add-hook 'prog-mode-hook #'tempel-abbrev-mode)
|
(add-hook 'prog-mode-hook #'tempel-abbrev-mode))
|
||||||
(global-tempel-abbrev-mode)
|
|
||||||
)
|
|
||||||
|
|
||||||
;; Optional: Add tempel-collection.
|
;; Optional: Add tempel-collection.
|
||||||
;; The package is young and doesn't have comprehensive coverage.
|
;; The package is young and doesn't have comprehensive coverage.
|
||||||
(use-package tempel-collection)
|
(use-package tempel-collection
|
||||||
|
:ensure t)
|
||||||
#+end_src
|
#+end_src
|
||||||
** Aggressive Indent
|
** Aggressive Indent
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
Loading…
Reference in a new issue