Skip to content

Commit

Permalink
Go to insert mode with i
Browse files Browse the repository at this point in the history
  • Loading branch information
magnars committed Aug 11, 2013
1 parent 92235de commit 2c935a6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions god-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@
:group 'god
:type 'string)

(defcustom god-insert-key
"i"
"The key used to switch into insert mode."
:group 'god
:type 'string)

(defvar god-global-mode nil
"Activate God mode on all buffers?")

Expand Down Expand Up @@ -141,6 +147,8 @@
;; Meta key support
((string= key god-meta-key) (god-mode-try-command "M-" "M-%s"))
((string= key (upcase god-meta-key)) (god-mode-try-command "C-M-" "C-M-%s"))
;; Easy switch to insert mode
((string= key god-insert-key) (god-local-mode -1))
;; By default all other things are C-*///
(t
(let* ((formatted (format "C-%s" key))
Expand Down

0 comments on commit 2c935a6

Please sign in to comment.