(Emacs)+html auto insert template
This commit is contained in:
@@ -846,7 +846,39 @@ as well.
|
|||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package autoinsert
|
(use-package autoinsert
|
||||||
:straight nil
|
: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
|
#+end_src
|
||||||
*** Yasnippet default
|
*** Yasnippet default
|
||||||
Setup global mode after evil mode has been loaded
|
Setup global mode after evil mode has been loaded
|
||||||
|
|||||||
Reference in New Issue
Block a user