From 70026d07d0bef09468b93caabf9a1f425533a69a Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Mon, 10 Feb 2025 15:05:56 -0500 Subject: Drop use-package again I prefer my own manual approach, use-package feels too magical and at times does too much for me. --- .emacs.d/lisp/bandali-utils.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to '.emacs.d/lisp/bandali-utils.el') 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 -- cgit v1.2.3-60-g2f50