From 88ab401adc83bea6e1f571c54093dbc7f521e080 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 4 Jan 2021 19:52:04 -0800 Subject: emacs: rename the directory --- emacs/custom/fcuny-edit.el | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 emacs/custom/fcuny-edit.el (limited to 'emacs/custom/fcuny-edit.el') diff --git a/emacs/custom/fcuny-edit.el b/emacs/custom/fcuny-edit.el new file mode 100644 index 0000000..8ca5214 --- /dev/null +++ b/emacs/custom/fcuny-edit.el @@ -0,0 +1,39 @@ +(use-package autorevert + :config + (setq global-auto-revert-non-file-buffers t) + (setq auto-revert-verbose nil) + (global-auto-revert-mode t)) + +(use-package whitespace + :hook ((prog-mode . fcuny/whitespace-setup) + (conf-mode . fcuny/whitespace-setup) + (outline-mode . fcuny/whitespace-setup) + (yaml-mode . fcuny/whitespace-setup)) + + :custom + (whitespace-style '(face)) + (show-trailing-whitespace nil) + + :init + (defun fcuny/whitespace-setup () + (setq show-trailing-whitespace t))) + +(use-package electric-pair-mode + :commands electric-pair-mode + :hook (prog-mode . electric-pair-mode)) + +(use-package paren + :ensure t + :custom + (show-paren-delay 0) + (show-paren-when-point-inside-paren t) + (show-paren-when-point-in-periphery t) + :config + (show-paren-mode 1)) + +(global-set-key (kbd "M-j") 'join-line) + +;; don't assume that sentences should have two spaces after period. +(setq sentence-end-double-space nil) + +(provide 'fcuny-edit) -- cgit 1.4.1