Emacs: Remove twig-mode I don't use PHP any more
Alan Pearce alan@alanpearce.eu
Fri, 04 Aug 2017 16:40:56 +0200
1 files changed, 1 insertions(+), 11 deletions(-)
jump to
M emacs/.emacs.d/init.el → emacs/.emacs.d/init.el
@@ -2376,13 +2376,6 @@ web-mode-enable-auto-quoting nil) (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-J" #'sp-join-sexp smartparens-mode-map) (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 ()