From 4c61a4a89c0a1613d6979a4df64ea1c2498eddaa Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 4 Aug 2017 16:40:56 +0200 Subject: Emacs: Remove twig-mode I don't use PHP any more --- emacs/.emacs.d/init.el | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'emacs') 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-" #'sp-splice-sexp-killing-backward smartparens-mode-map) (bind-key "M-" #'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-" #'sp-slurp-hybrid-sexp smartparens-mode-map) - (sp-with-modes '(twig-mode) - (sp-local-pair "{%" "%}") - (sp-local-pair "{{" "}}")) + (bind-key "C-S-" #'sp-slurp-hybrid-sexp smartparens-mode-map) (show-smartparens-global-mode t) (smartparens-global-strict-mode t) (define-hook-helper lisp-mode-common () -- cgit 1.4.1