From 763d5683e85b16082d7a352cc068f791b9456ee1 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Sat, 14 Oct 2017 12:33:47 +0200 Subject: [PATCH] emacs - treat dash as part of word in elisp mode --- emacs/.emacs.d/init.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 1a50439..8ca4e5b 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -42,6 +42,9 @@ (add-hook 'cperl-mode-hook (lambda () (setq-local local-abbrev-table nil))) +;; Treat - as part of work in elisp +(add-hook 'emacs-lisp-mode-hook + (lambda () (modify-syntax-entry ?- "w"))) ;; Enable backup (setq make-backup-files t)