]> git.donarmstrong.com Git - lib.git/blobdiff - emacs_el/configuration/don-configuration.org
load web-mode if it exists
[lib.git] / emacs_el / configuration / don-configuration.org
index c3abecfe2424c8315bbbd34cf5ee81d90726725c..8652bd2d542099d706eaff45c7efae60b053b0e8 100644 (file)
@@ -414,7 +414,7 @@ value, scrolling continues until there is no more output.
 #+BEGIN_SRC emacs-lisp
 
   ;;; stolen from https://github.com/malb/emacs.d/blob/master/malb.org
-  (defun malb/helm-swoop-pr2e-fill ()
+  (defun malb/helm-swoop-pre-fill ()
     (thing-at-point 'symbol))
   (setq malb/helm-swoop-ignore-major-mode '(dired-mode
         paradox-menu-mode doc-view-mode pdf-view-mode
@@ -750,6 +750,16 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori
            ("C-S-c C-S-c" . mc/edit-lines))
     )
 #+END_SRC
+** Web Mode
+#+BEGIN_SRC emacs-lisp
+  (use-package web-mode
+    :config
+    (add-to-list 'auto-mode-alist '("\\.tmpl\\'" . web-mode))
+    (setq web-mode-enable-engine-detection t)
+    (setq web-mode-engines-alist
+          '(("template-toolkit" . "\\.tmpl\\'")))
+    )
+#+END_SRC
 * Org Mode
 ** Use-package and load things
 #+BEGIN_SRC emacs-lisp