diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-09-27 22:20:29 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-09-27 22:20:29 +0100 |
commit | 51fcea69fcda68d7f8f415c6b4c1e761ddb1a14b (patch) | |
tree | b36d9f8c42d32ffe3ce7614e8f88062d01f34eed /Emacs/.config/emacs | |
parent | 0fe6c046b20614769d253546213aa999824903ef (diff) | |
download | dotfiles-51fcea69fcda68d7f8f415c6b4c1e761ddb1a14b.tar.gz dotfiles-51fcea69fcda68d7f8f415c6b4c1e761ddb1a14b.tar.bz2 dotfiles-51fcea69fcda68d7f8f415c6b4c1e761ddb1a14b.zip |
(Emacs)~+snippets -> +autotyping
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index b23dbc6..bf560ac 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -786,31 +786,31 @@ with abstracting a few things away. (prog-mode-hook . abbrev-mode) (text-mode-hook . abbrev-mode) :init - (defmacro +snippets/deff-abbrev (ABBREV-TABLE ABBREV EXPANSION) + (defmacro +autotyping/deff-abbrev (ABBREV-TABLE ABBREV EXPANSION) "Wraps around define-abbrev to fill in some repeated stuff - when expansion is a function." +when expansion is a function." `(define-abbrev ,ABBREV-TABLE ,ABBREV "" (proc (insert ,EXPANSION)))) :config - (+snippets/deff-abbrev + (+autotyping/deff-abbrev global-abbrev-table "sdate" (format-time-string "%Y-%m-%d" (current-time))) - (+snippets/deff-abbrev + (+autotyping/deff-abbrev global-abbrev-table "stime" (format-time-string "%H:%M:%S" (current-time))) - (+snippets/deff-abbrev + (+autotyping/deff-abbrev text-mode-abbrev-table "sday" (format-time-string "%A" (current-time))) - (+snippets/deff-abbrev + (+autotyping/deff-abbrev text-mode-abbrev-table "smonth" (format-time-string "%B" (current-time)))) @@ -822,7 +822,7 @@ Defining some basic skeletons :straight nil :after abbrev :config - (defmacro +snippets/gen-skeleton-abbrev (mode abbrev &rest skeleton) + (defmacro +autotyping/gen-skeleton-abbrev (mode abbrev &rest skeleton) (let* ((table (intern (concat (symbol-name mode) "-abbrev-table"))) (skeleton-name (intern (concat "+" "skeleton/" (symbol-name mode) "/" abbrev)))) `(progn |