summaryrefslogtreecommitdiffstats
path: root/.emacs.d/lisp/bandali-utils.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/lisp/bandali-utils.el')
-rw-r--r--.emacs.d/lisp/bandali-utils.el15
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