Loading mail settings if they exist \nProper up/down history movement in nrepl

This commit is contained in:
vincent@spotify.com 2013-08-28 00:56:20 +02:00
parent 867a87387c
commit a7e4801f3b
4 changed files with 15 additions and 2 deletions

View file

@ -16,6 +16,7 @@
(quote
(capitalized-words-mode turn-on-haskell-decl-scan turn-on-haskell-doc turn-on-hi2)))
'(it-mode-google-cmd "/usr/local/bin/google")
'(mu4e-use-fancy-chars t)
'(ns-alternate-modifier (quote none))
'(ns-command-modifier (quote meta))
'(require-final-newline (quote visit-save)))

View file

@ -27,11 +27,18 @@
;; Use ac-nrepl for completion
(add-hook 'nrepl-mode-hook 'ac-nrepl-setup)
(add-hook 'nrepl-interaction-mode-hook 'ac-nrepl-setup)
(eval-after-load "auto-complete"
'(add-to-list 'ac-modes 'nrepl-mode))
;; I want history up/down without modifiers
(define-key nrepl-mode-map (kbd "<up>") 'nrepl-backward-input)
(define-key nrepl-mode-map (kbd "<down>") 'nrepl-forward-input)
(define-key nrepl-mode-map (kbd "C-<up>") 'previous-line)
(define-key nrepl-mode-map (kbd "C-<down>") 'next-line)
(define-key nrepl-interaction-mode-map (kbd "C-c C-d") 'ac-nrepl-popup-doc)
(eval-after-load "auto-complete"
'(add-to-list 'ac-modes 'nrepl-mode))
;; Paredit in clojure
(add-hook 'clojure-mode-hook 'paredit-mode)

View file

@ -9,6 +9,8 @@
;;; Code:
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e")
(add-to-list 'exec-path "/usr/local/bin")
(add-to-list 'exec-path (expand-file-name "~/bin"))
(add-to-list 'exec-path "/Applications/Racket/bin")

View file

@ -70,6 +70,9 @@
;; Actual servers and such are loaded from irc.el
(load-file-if-exists "~/.emacs.d/init-irc.el")
;; Mail configuration (mu4e && mbsync)
(load-file-if-exists "~/.emacs.d/init-mail.el")
;; Load magnars' string manipulation library
(require 's)