From 58e9ecb13a3a01a9dcacc03c467a220f0681bb17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Sun, 27 Oct 2024 16:44:45 -0700 Subject: emacs: mv auto-fill.el to package rul-write --- .emacs.d/init.el | 1 + .emacs.d/rul-emacs.org | 2 -- .emacs.d/rul-init.d/auto-fill.el | 4 ---- .emacs.d/rul-lisp/packages/rul-write.el | 3 +++ 4 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 .emacs.d/rul-init.d/auto-fill.el diff --git a/.emacs.d/init.el b/.emacs.d/init.el index e245cf3..6ca8098 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -20,6 +20,7 @@ ;; Global keybindings (global-set-key (kbd "C-c R") 'revert-buffer) +(global-set-key (kbd "C-c q") 'auto-fill-mode) (global-set-key (kbd "C-c w") 'whitespace-cleanup) (defun help/insert-em-dash () diff --git a/.emacs.d/rul-emacs.org b/.emacs.d/rul-emacs.org index 44e7465..57394ee 100644 --- a/.emacs.d/rul-emacs.org +++ b/.emacs.d/rul-emacs.org @@ -200,8 +200,6 @@ Now, I simply start it from Emacs itself. This approach works well for me. (require 'rul-write) ;; Init parts (will be deprecated in favor of packages) -(load-file "~/.emacs.d/rul-init.d/themes.el") -(load-file "~/.emacs.d/rul-init.d/auto-fill.el") (load-file "~/.emacs.d/rul-init.d/flycheck.el") (load-file "~/.emacs.d/rul-init.d/flyspell.el") (load-file "~/.emacs.d/rul-init.d/fonts.el") diff --git a/.emacs.d/rul-init.d/auto-fill.el b/.emacs.d/rul-init.d/auto-fill.el deleted file mode 100644 index dad2831..0000000 --- a/.emacs.d/rul-init.d/auto-fill.el +++ /dev/null @@ -1,4 +0,0 @@ -;; auto-fill mode -(add-hook 'text-mode-hook 'turn-on-auto-fill) -(global-set-key (kbd "C-c q") 'auto-fill-mode) - diff --git a/.emacs.d/rul-lisp/packages/rul-write.el b/.emacs.d/rul-lisp/packages/rul-write.el index b997ed9..1f7820f 100644 --- a/.emacs.d/rul-lisp/packages/rul-write.el +++ b/.emacs.d/rul-lisp/packages/rul-write.el @@ -51,4 +51,7 @@ Else create a new file." today '("journal")))))) +;; auto-fill mode +(add-hook 'text-mode-hook 'turn-on-auto-fill) + (provide 'rul-write) -- cgit v1.2.3