diff options
| author | 2024-10-24 00:30:20 -0700 | |
|---|---|---|
| committer | 2024-10-24 00:30:20 -0700 | |
| commit | e26750e302366d708d96cc5720dfb8eeb33ab5f6 (patch) | |
| tree | 3cf32f7f96ea21e81de8971820299a478e81b147 | |
| parent | 218387763810beb90dcd050e6fc3000ca07121cb (diff) | |
| download | emacs-config-e26750e302366d708d96cc5720dfb8eeb33ab5f6.tar.gz emacs-config-e26750e302366d708d96cc5720dfb8eeb33ab5f6.zip | |
Set up space cycling
Remove newlines along with the rest of the whitespace.
| -rw-r--r-- | oni-core.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/oni-core.el b/oni-core.el index a8e993c..c3d78b0 100644 --- a/oni-core.el +++ b/oni-core.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2024.0205.222004 +;; Version: 2024.1014.135848 ;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview mixed-pitch ace-window vertico marginalia orderless consult embark docstr mini-frame) ;; This program is free software; you can redistribute it and/or modify @@ -528,5 +528,11 @@ which normally have their errors suppressed." (lambda (d) (string-match-p (rx "/" (or "." ".." "foreign") eos) d)) (directory-files "~/projects/" t)))) +;;; Space cycling + +;; The ‘-’ argument to each function makes sure that any newlines are also +;; removed along with the other whitespace. +(setq cycle-spacing-actions '((just-one-space -) (delete-all-space -) restore)) + (provide 'oni-core) ;;; oni-core.el ends here |
