Skip to content

Commit

Permalink
rcirc layer: default to insert state (emacs in holy-mode)
Browse files Browse the repository at this point in the history
Move C-j and C-k to normal state.
  • Loading branch information
syl20bnr committed Apr 21, 2015
1 parent 5c24631 commit ff9b9ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions contrib/irc/rcirc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ will be replaced by the credentials stored in your `~/.authinfo.gpg`.
<kbd>SPC a i r</kbd> | Open rcirc
<kbd>SPC L o i</kbd> | Open rcirc in a custom perspective "@RICRC" (need perspectives layer enabled)

In normal state:

Key Binding | Description
----------------------|------------------------------------------------------------
<kbd>C-j</kbd> | next item in history
<kbd>C-k</kbd> | previous item in history

## Rcirc documentation

Expand Down
8 changes: 5 additions & 3 deletions contrib/irc/rcirc/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
(cond
(rcirc-enable-authinfo-support (spacemacs//rcirc-with-authinfo arg))
(rcirc-enable-znc-support (spacemacs//rcirc-with-znc arg))
(t (rcirc arg)))))
(t (rcirc arg))))
(push 'rcirc-mode evil-insert-state-modes))
:config
(progn
;; (set-input-method "latin-1-prefix")
Expand All @@ -67,8 +68,9 @@
;; this is where you can store personal information
(require 'pinit-rcirc nil 'noerror)

(define-key rcirc-mode-map (kbd "C-j") 'rcirc-insert-prev-input)
(define-key rcirc-mode-map (kbd "C-k") 'rcirc-insert-next-input)
(evil-define-key 'normal rcirc-mode-map
(kbd "C-j") 'rcirc-insert-prev-input
(kbd "C-k") 'rcirc-insert-next-input)

;; add a key for EMMS integration
(when (boundp 'emms-track-description)
Expand Down

0 comments on commit ff9b9ac

Please sign in to comment.