Added function to insert hash symbol

This commit is contained in:
Andrew Garner
2012-01-09 11:38:01 +00:00
parent e4dea9d1fd
commit 7c6c2e0d70
2 changed files with 12 additions and 0 deletions

View File

@@ -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
;;

View File

@@ -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)