updated init-modes for new nrepl.el

This commit is contained in:
Vincent Ambo 2013-10-05 00:12:18 +02:00
parent 9a9c9192b1
commit a4e7f10362
2 changed files with 8 additions and 5 deletions

View file

@ -35,11 +35,11 @@
(add-hook 'nrepl-interaction-mode-hook 'ac-nrepl-setup) (add-hook 'nrepl-interaction-mode-hook 'ac-nrepl-setup)
;; I want history up/down without modifiers ;; I want history up/down without modifiers
(define-key nrepl-mode-map (kbd "<up>") 'nrepl-backward-input) (define-key nrepl-repl-mode-map (kbd "<up>") 'nrepl-backward-input)
(define-key nrepl-mode-map (kbd "<down>") 'nrepl-forward-input) (define-key nrepl-repl-mode-map (kbd "<down>") 'nrepl-forward-input)
(define-key nrepl-mode-map (kbd "C-<up>") 'previous-line) (define-key nrepl-repl-mode-map (kbd "C-<up>") 'previous-line)
(define-key nrepl-mode-map (kbd "C-<down>") 'next-line) (define-key nrepl-repl-mode-map (kbd "C-<down>") 'next-line)
(define-key nrepl-mode-map (kbd "C-c C-d") 'ac-nrepl-popup-doc) (define-key nrepl-repl-mode-map (kbd "C-c C-d") 'ac-nrepl-popup-doc)
(define-key nrepl-interaction-mode-map (kbd "C-c C-d") 'ac-nrepl-popup-doc) (define-key nrepl-interaction-mode-map (kbd "C-c C-d") 'ac-nrepl-popup-doc)
(define-key nrepl-interaction-mode-map (kbd "C-c D") 'nrepl-doc) (define-key nrepl-interaction-mode-map (kbd "C-c D") 'nrepl-doc)

View file

@ -60,6 +60,9 @@
(setq custom-file "~/.emacs.d/init-custom.el") (setq custom-file "~/.emacs.d/init-custom.el")
(load custom-file) (load custom-file)
(custom-download-script "https://gist.github.com/gongo/1789605/raw/526e3f21dc7d6cef20951cf0ce5d51b90b7821ff/json-reformat.el"
"json-reformat.el")
;; A file with machine specific settings. ;; A file with machine specific settings.
(load-file-if-exists "~/.emacs.d/init-local.el") (load-file-if-exists "~/.emacs.d/init-local.el")