From 130fa9953a1efa32e9e60f7ae16fed98131ad401 Mon Sep 17 00:00:00 2001 From: Peter Selby Date: Mon, 25 Jan 2021 14:21:12 -0600 Subject: [PATCH] Subword mode (i.e. camelcase) --- config.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config.el b/config.el index c3bd2fa..b7762d3 100644 --- a/config.el +++ b/config.el @@ -108,11 +108,13 @@ (ivy-prescient-mode 1) +(global-subword-mode 1) + (with-current-buffer (get-buffer "*scratch*") (emacs-lisp-mode)) (defun filter (condp lst) - "Filter list lst to only those elements matching condp." + "Filter list LST to only those elements matching CONDP." (delq nil (mapcar (lambda (x) (and (funcall condp x) x)) lst))) (add-hook 'eshell-mode-hook @@ -121,6 +123,7 @@ (setenv "EDITOR" "emacsclient"))) (defun get-bash-path () + "Return paths from the bash PATH." (let* ((bash-path (bash-env-var "PATH")) (path-dirs (split-string bash-path ":"))) (filter #'file-directory-p path-dirs)))