emacs: BREAKING stop using use-package for prot-comment

This commit is contained in:
Protesilaos Stavrou 2025-11-01 10:50:03 +02:00
parent eae0a6dc00
commit 564f5f075d
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 20 additions and 14 deletions

View file

@ -181,9 +181,7 @@
"M-\\" #'prot-pair-delete))
;;;; Comments (prot-comment.el)
(use-package prot-comment
:ensure nil
:init
(prot-emacs-configure
(setq comment-empty-lines t)
(setq comment-fill-column nil)
(setq comment-multi-line t)
@ -193,10 +191,15 @@
(setq prot-comment-comment-keywords '("TODO" "NOTE" "FIXME"))
(setq prot-comment-timestamp-format-concise "%F")
(setq prot-comment-timestamp-format-verbose "%F %T %z")
:bind
(("C-;" . prot-comment)
("M-;" . prot-comment) ; overrides `comment-dwim'
("C-x C-;" . prot-comment-timestamp-keyword)))
(prot-emacs-autoload
(prot-comment prot-comment-timestamp-keyword)
"prot-comment")
(prot-emacs-keybind global-map
"C-;" #'prot-comment
"M-;" #'prot-comment ; overrides `comment-dwim'
"C-x C-;" #'prot-comment-timestamp-keyword))
;;;; Prefix keymap (prot-prefix.el)
(use-package prot-prefix

View file

@ -2854,9 +2854,7 @@ the module to set my desired configurations.
#+begin_src emacs-lisp :tangle "prot-emacs-modules/prot-emacs-essentials.el"
;;;; Comments (prot-comment.el)
(use-package prot-comment
:ensure nil
:init
(prot-emacs-configure
(setq comment-empty-lines t)
(setq comment-fill-column nil)
(setq comment-multi-line t)
@ -2866,10 +2864,15 @@ the module to set my desired configurations.
(setq prot-comment-comment-keywords '("TODO" "NOTE" "FIXME"))
(setq prot-comment-timestamp-format-concise "%F")
(setq prot-comment-timestamp-format-verbose "%F %T %z")
:bind
(("C-;" . prot-comment)
("M-;" . prot-comment) ; overrides `comment-dwim'
("C-x C-;" . prot-comment-timestamp-keyword)))
(prot-emacs-autoload
(prot-comment prot-comment-timestamp-keyword)
"prot-comment")
(prot-emacs-keybind global-map
"C-;" #'prot-comment
"M-;" #'prot-comment ; overrides `comment-dwim'
"C-x C-;" #'prot-comment-timestamp-keyword))
#+end_src
*** The =prot-emacs-essentials.el= section about =prot-prefix.el= (prefix nested keymaps)