diff options
Diffstat (limited to '.emacs.d/lisp/my-functions.el')
-rw-r--r-- | .emacs.d/lisp/my-functions.el | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.emacs.d/lisp/my-functions.el b/.emacs.d/lisp/my-functions.el new file mode 100644 index 0000000..8387d52 --- /dev/null +++ b/.emacs.d/lisp/my-functions.el @@ -0,0 +1,31 @@ +;;; package --- Summary +;;; Commentary: +;;; useful snippers of code for my daily use. +;;; Code: + +(defun apollo/my-html-header () + "Inset html boilerplate with boostrap link." + (interactive) + (insert +"<!DOCTYPE html> +<html lang=\"en\"> + <head> + <meta charset=\"UTF-8\"> + <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"> + <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\"> + <title>My Title</title> + <link rel=\"stylesheet\" href=\"./style.css\"> + <link href=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi\" crossorigin=\"anonymous\"> + </head> + <body> + <main> + <h1>Starting point</h1> + </main> + <script src=\"index.js\"></script> + </body> +</html>" )) + + + +;;; my-functions.el ends here + |