summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-08-04 16:40:56 +0200
committerAlan Pearce2017-08-04 16:40:56 +0200
commit4c61a4a89c0a1613d6979a4df64ea1c2498eddaa (patch)
tree3453b43c6b30d0106d4afe04696f61e70441821f /emacs
parent9a1e539df2bafab894bde33c39feee8c5ac4cb59 (diff)
downloaddotfiles-4c61a4a89c0a1613d6979a4df64ea1c2498eddaa.tar.lz
dotfiles-4c61a4a89c0a1613d6979a4df64ea1c2498eddaa.tar.zst
dotfiles-4c61a4a89c0a1613d6979a4df64ea1c2498eddaa.zip
Emacs: Remove twig-mode
I don't use PHP any more
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.el12
1 files changed, 1 insertions, 11 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 78e4919..5411adb 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -2376,13 +2376,6 @@
             (sp-local-pair '(web-mode) "<%" "%>")))
 ;; #+END_SRC
 
-;; I derived a mode for twig, in order to use its =mode-hook=.
-
-;; #+BEGIN_SRC emacs-lisp
-(define-derived-mode twig-mode web-mode "Twig")
-(add-to-list 'auto-mode-alist '("\\.html\\.twig\\'" . twig-mode))
-;; #+END_SRC
-
 ;; *** Live coding
 
 ;; Sometimes I might want to show off my emacs usage.
@@ -2758,10 +2751,7 @@
             (bind-key "M-<up>" #'sp-splice-sexp-killing-backward smartparens-mode-map)
             (bind-key "M-<down>" #'sp-splice-sexp-killing-forward smartparens-mode-map)
             (bind-key "C-M-S-k" #'sp-kill-hybrid-sexp smartparens-mode-map)
-            (bind-key "C-S-<right>" #'sp-slurp-hybrid-sexp smartparens-mode-map)
-            (sp-with-modes '(twig-mode)
-              (sp-local-pair "{%" "%}")
-              (sp-local-pair "{{" "}}"))
+            (bind-key "C-S-<right>" #'sp-slurp-hybrid-sexp smartparens-mode-map) 
             (show-smartparens-global-mode t)
             (smartparens-global-strict-mode t)
             (define-hook-helper lisp-mode-common ()