diff options
author | Amin Bandali <bandali@kelar.org> | 2025-02-10 15:05:56 -0500 |
---|---|---|
committer | Amin Bandali <bandali@kelar.org> | 2025-02-10 15:05:56 -0500 |
commit | 70026d07d0bef09468b93caabf9a1f425533a69a (patch) | |
tree | c5379ac39bff3fb3e818eba88844c136c7e1c239 /.emacs.d/lisp/bandali-utils.el | |
parent | 99332da43b8324814ca6c1af7f0076f83c8ce233 (diff) | |
download | configs-70026d07d0bef09468b93caabf9a1f425533a69a.tar.gz configs-70026d07d0bef09468b93caabf9a1f425533a69a.tar.xz configs-70026d07d0bef09468b93caabf9a1f425533a69a.zip |
Drop use-package again
I prefer my own manual approach, use-package feels too magical and
at times does too much for me.
Diffstat (limited to '.emacs.d/lisp/bandali-utils.el')
-rw-r--r-- | .emacs.d/lisp/bandali-utils.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.emacs.d/lisp/bandali-utils.el b/.emacs.d/lisp/bandali-utils.el index 9edc91e..effeadd 100644 --- a/.emacs.d/lisp/bandali-utils.el +++ b/.emacs.d/lisp/bandali-utils.el @@ -90,5 +90,20 @@ for all frames." (fill-region beg end) (fill-paragraph)))) +(defun b/setq-local-indent-tabs-mode-nil () + "Locally disable indent-tabs-mode. +Useful mainly as a hook for other modes." + (setq-local indent-tabs-mode nil)) + + +;;; Key bindings +(b/keymap-global-set "C-c s c" #'b/*scratch*) +(b/keymap-global-set "C-c d" #'b/duplicate-line-or-region) +(b/keymap-global-set "C-c j" #'b/join-line-top) +(b/keymap-global-set "C-S-j" #'b/join-line-top) +(b/keymap-global-set "C-c v" #'b/invert-default-face) +(b/keymap-global-set "C-c q" #'b/unfill-paragraph-or-region) +(b/keymap-set text-mode-map "M-RET" #'b/insert-asterism) + (provide 'bandali-utils) ;;; bandali-utils.el ends here |