working system
This commit is contained in:
commit
e0ad4ea627
53 changed files with 2927 additions and 0 deletions
27
lisp/init-whitespace.el~
Normal file
27
lisp/init-whitespace.el~
Normal file
|
@ -0,0 +1,27 @@
|
|||
;;; init-whitespace.el --- Special handling for whitespace -*- lexical-binding: t -*-
|
||||
;;; Commentary:
|
||||
;;; Code:
|
||||
|
||||
(setq-default show-trailing-whitespace t)
|
||||
|
||||
|
||||
;;; Whitespace
|
||||
|
||||
(defun sanityinc/show-trailing-whitespace ()
|
||||
"Enable display of trailing whitespace in this buffer."
|
||||
(setq-local show-trailing-whitespace t))
|
||||
|
||||
(dolist (hook '(prog-mode-hook text-mode-hook conf-mode-hook))
|
||||
(add-hook hook 'sanityinc/show-trailing-whitespace))
|
||||
|
||||
|
||||
(require-package 'whitespace-cleanup-mode)
|
||||
(add-hook 'after-init-hook 'global-whitespace-cleanup-mode)
|
||||
(with-eval-after-load 'whitespace-cleanup-mode
|
||||
(diminish 'whitespace-cleanup-mode))
|
||||
|
||||
(global-set-key [remap just-one-space] 'cycle-spacing)
|
||||
|
||||
|
||||
(provide 'init-whitespace)
|
||||
;;; init-whitespace.el ends here
|
Loading…
Add table
Add a link
Reference in a new issue