diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-07-23 21:49:43 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-07-25 15:44:48 +0100 |
commit | ae45e8744dc2a8d06a39d28e64cb55b06ba8c077 (patch) | |
tree | 1a8e691dec20dbc7450e28723aedaa3049e803bd /Emacs/.config/emacs | |
parent | d9de886cafda9542df23edff35bc43ea07fea25d (diff) | |
download | dotfiles-ae45e8744dc2a8d06a39d28e64cb55b06ba8c077.tar.gz dotfiles-ae45e8744dc2a8d06a39d28e64cb55b06ba8c077.tar.bz2 dotfiles-ae45e8744dc2a8d06a39d28e64cb55b06ba8c077.zip |
(Emacs)+html auto insert template
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 3723462..18a1091 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -846,7 +846,39 @@ as well. #+begin_src emacs-lisp (use-package autoinsert :straight nil - :hook (after-init-hook . auto-insert-mode)) + :hook (after-init-hook . auto-insert-mode) + :config + (add-to-list + 'auto-insert-alist + '(("\\.html\\'" . "HTML Skeleton") + "" + "<!doctype html> +<html class='no-js' lang=''> + <head> + <meta charset='utf-8'> + <meta http-equiv='x-ua-compatible' content='ie=edge'> + <title>"(read-string "Enter title: ") | """</title> + <meta name='description' content='" (read-string "Enter description: ") | "" "'> + <meta name='author' content='"user-full-name"'/> + <meta name='viewport' content='width=device-width, initial-scale=1'> + + <link rel='apple-touch-icon' href='/apple-touch-icon.png'> + <link rel='shortcut icon' href='/favicon.ico'/> + <!-- Place favicon.ico in the root directory --> + + </head> + <body> + <!--[if lt IE 8]> + <p class='browserupgrade'> + You are using an <strong>outdated</strong> browser. Please + <a href='http://browsehappy.com/'>upgrade your browser</a> to improve + your experience. + </p> + <![endif]--> +" + _ +" </body> +</html>"))) #+end_src *** Yasnippet default Setup global mode after evil mode has been loaded |