From 32dcfd850d40a9aa9ee167570f773d99382ec573 Mon Sep 17 00:00:00 2001 From: Vedang Manerikar Date: Sat, 23 Nov 2024 09:39:17 +0530 Subject: [PATCH] Copy simple essentials from my el-get config --- unravel-emacs.org | 9 +++++++-- unravel-modules/unravel-essentials.el | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/unravel-emacs.org b/unravel-emacs.org index 1ab4940..41262c4 100644 --- a/unravel-emacs.org +++ b/unravel-emacs.org @@ -1298,14 +1298,19 @@ These are modifications to basic configuration I use on my Mac OSX machine. (use-package simple :ensure nil - :after vertico ; so that we can bind to vertico-map + :after vertico ;; so that we can bind to vertico-map :bind ;; Rebind `C-w' to work differently based on whether a region is ;; active. ( :map global-map ("C-w" . vedang/backward-kill-word-or-kill-region) :map vertico-map - ("C-l" . vedang/backward-kill-word-or-kill-region))) + ("C-l" . vedang/backward-kill-word-or-kill-region)) + :hook + ((before-save . delete-trailing-whitespace) + (text-mode . turn-on-visual-line-mode)) + :config + (setq column-number-mode t)) #+end_src ** Finally, we provide the =unravel-essentials.el= module diff --git a/unravel-modules/unravel-essentials.el b/unravel-modules/unravel-essentials.el index 88e2b24..c91755d 100644 --- a/unravel-modules/unravel-essentials.el +++ b/unravel-modules/unravel-essentials.el @@ -181,13 +181,18 @@ If the region is selected, retain the original behaviour, otherwise call (use-package simple :ensure nil - :after vertico ; so that we can bind to vertico-map + :after vertico ;; so that we can bind to vertico-map :bind ;; Rebind `C-w' to work differently based on whether a region is ;; active. ( :map global-map ("C-w" . vedang/backward-kill-word-or-kill-region) :map vertico-map - ("C-l" . vedang/backward-kill-word-or-kill-region))) + ("C-l" . vedang/backward-kill-word-or-kill-region)) + :hook + ((before-save . delete-trailing-whitespace) + (text-mode . turn-on-visual-line-mode)) + :config + (setq column-number-mode t)) (provide 'unravel-essentials)