diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-09-04 09:47:09 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-09-04 09:47:09 -0700 |
commit | 73a819e375bb33d43cf8ec2e539ae43b64764491 (patch) | |
tree | e81295a29afaf452c2adf40f2808a8bf5cfc1d05 | |
parent | 32d137889aec790248343d21ee4bccc4acaa69bd (diff) | |
download | dotfiles-73a819e375bb33d43cf8ec2e539ae43b64764491.tar.gz |
improve spw/paredit-unix-word-rubout right below a comment
-rw-r--r-- | .emacs.d/init-spw.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el index 503d8812..b9aa3025 100644 --- a/.emacs.d/init-spw.el +++ b/.emacs.d/init-spw.el @@ -1946,7 +1946,8 @@ mutt's review view, after exiting EDITOR." (defun spw/paredit-unix-word-rubout () (interactive) - (if (paredit-in-comment-p) + (if (save-excursion (skip-chars-backward "[:space:]\n") + (paredit-in-comment-p)) (spw/unix-word-rubout) (backward-kill-sexp))) (define-key paredit-mode-map "\C-w" #'spw/paredit-unix-word-rubout) |