summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2015-08-27 08:54:57 +0200
committerAlan Pearce2015-08-27 08:54:57 +0200
commit86ff9bac8178ab3adaf7c94676b00e69c2d39d5a (patch)
tree648bf1330b13aa4a22a34359ebdb3445c26365b2
parentc3d1083887130c7cad1764ca7738880de559906b (diff)
downloaddotfiles-86ff9bac8178ab3adaf7c94676b00e69c2d39d5a.tar.lz
dotfiles-86ff9bac8178ab3adaf7c94676b00e69c2d39d5a.tar.zst
dotfiles-86ff9bac8178ab3adaf7c94676b00e69c2d39d5a.zip
Emacs: Install shrink-whitespace
-rw-r--r--tag-emacs/emacs.d/Cask1
-rw-r--r--tag-emacs/emacs.d/init.org10
2 files changed, 11 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/Cask b/tag-emacs/emacs.d/Cask
index b55830c..bc48c31 100644
--- a/tag-emacs/emacs.d/Cask
+++ b/tag-emacs/emacs.d/Cask
@@ -112,6 +112,7 @@
 (depends-on "s")
 (depends-on "sass-mode")
 (depends-on "scss-mode")
+(depends-on "shrink-whitespace")
 (depends-on "shut-up")
 (depends-on "simple-httpd")
 (depends-on "skewer-mode")
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index f6d6480..291c802 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -478,6 +478,16 @@ open it.  Whitespace butler fixes whitespace only for lines that I’m editing.
     (add-hook #'before-make-frame-hook (lambda () (ws-butler-global-mode 1))))
 #+END_SRC
 
+** shrink-whitespace
+
+DWIM whitespace removal. So I don’t need =M-SPC=, =M-\= and =C-x o=
+for similar things any more.
+
+#+BEGIN_SRC emacs-lisp
+  (req-package shrink-whitespace
+    :bind ("M-SPC" . shrink-whitespace))
+#+END_SRC
+
 ** fasd
 
 Fasd is a nice shell plugin that remembers file and folder arguments,