diff --git a/helpers.el b/helpers.el index bb579ac..5c6aa00 100644 --- a/helpers.el +++ b/helpers.el @@ -16,6 +16,15 @@ (indent-region (region-beginning) (region-end) nil)))))) +;; +;; Insert Hash +;; + +(defun insert-hash() + "Inserts a hash into the buffer" + (interactive) + (insert "#")) + ;; ;; Duplicate Line ;; diff --git a/keybindings.el b/keybindings.el index e627e20..edab35c 100644 --- a/keybindings.el +++ b/keybindings.el @@ -103,6 +103,9 @@ (define-key global-map (kbd "C-c r") 'org-remember) (define-key global-map (kbd "C-M-r") 'org-remember) +;; Allow hash to be entered +(global-set-key (kbd "M-3") 'insert-hash) + ;; ElScreen related shortcuts (when (require 'elscreen nil 'noerror)