home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 91227b9ec0041f1af6e05903abf3ee408b060727
parent 7219b6d81bba0895a5515deec0f2e5d3820e3671
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 27 Nov 2020 18:01:05 +0100

tools/emacs: enable autoinsert…

… and use skeleton with it

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-files.el | 6++++++
Mtools/emacs/config/config-org.el | 3+--
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/tools/emacs/config/config-files.el b/tools/emacs/config/config-files.el @@ -3,6 +3,12 @@ ;;; Files related configurations ;;; Code: +(use-package autoinsert + :init + (setq-default auto-insert-query nil + auto-insert-alist nil) + :config + (auto-insert-mode 1)) (use-package files :commands (revert-buffer) :bind (("<f5>" . revert-buffer)) diff --git a/tools/emacs/config/config-org.el b/tools/emacs/config/config-org.el @@ -49,9 +49,8 @@ > "#+FILETAGS: " (skeleton-read "Tags: ") \n > "#+CATEGORY: " (skeleton-read "Category: ") \n > _ \n - > "#+BEGIN: clocktable :scope file :maxlevel 2 :emphasize nil :link t" \n - > "#+END:" \n > _ \n) + (define-auto-insert '("/projects/.*\\.org\\'" . "projects org files") [vde/org-project]) (define-skeleton vde/org-www-post "new www post" nil