Minimal emacs config
After spilling tea on my laptop yesterday, I have been borrowing a friends thinkpad. Here is the new emacs setup at the end of day one. I’ve only included the things that have actually annoyed me during the day at work. I had to install slime, magit, swank-clojure and js2-mode using elpa.
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(global-set-key (kbd "C-z") 'execute-extended-command)
(global-auto-revert-mode 1)
(ido-mode 1)
(global-set-key (kbd "C-x M-b") 'bury-buffer)
(global-set-key (kbd "C-n") 'next-logical-line)
(global-set-key (kbd "C-p") 'previous-logical-line)
(global-set-key (kbd "M-o") 'other-window)
(global-set-key (kbd "C-c C-g") 'rgrep)
(global-set-key (kbd "M-g") 'goto-line)
(global-set-key (kbd "M-(") 'insert-pair)
(global-set-key (kbd "M-[") 'insert-pair)
(global-set-key (kbd "C-M-{") 'insert-pair)
(global-set-key (kbd "M-\"") 'insert-pair)
(global-set-key (kbd "M-'") 'insert-pair)
(setq focus-follows-mouse t)
(setq mouse-autoselect-window t)
(add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt)
(display-time)
(fset 'yes-or-no-p 'y-or-n-p)
(mouse-avoidance-mode 'cat-and-mouse)
(put 'downcase-region 'disabled nil)
(put 'narrow-to-region 'disabled nil)
(put 'scroll-left 'disabled nil)
(put 'upcase-region 'disabled nil)
(winner-mode 1)
(global-unset-key "\C-x\C-c")
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(ediff-window-setup-function (quote ediff-setup-windows-plain))
'(uniquify-buffer-name-style (quote forward) nil (uniquify)))
Advertisement
Categories: Emacs