aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2024-10-27 16:44:45 -0700
committerRaúl Benencia <id@rbenencia.name>2024-10-27 16:44:45 -0700
commit58e9ecb13a3a01a9dcacc03c467a220f0681bb17 (patch)
treed97377aef2802f017eac9ea18a2b5392dae56d1f /.emacs.d
parentfba678fa1c21d35e0972c4036c0e209e155d07b6 (diff)
emacs: mv auto-fill.el to package rul-write
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/init.el1
-rw-r--r--.emacs.d/rul-emacs.org2
-rw-r--r--.emacs.d/rul-init.d/auto-fill.el4
-rw-r--r--.emacs.d/rul-lisp/packages/rul-write.el3
4 files changed, 4 insertions, 6 deletions
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)
nihil fit ex nihilo