Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (43 sloc) 1.88 kb
47e5768 Added emacs configuration
Josh Hoyt authored
1 ;; Let us load files from this configuration directory
2 (setq load-path (cons "~/.config/emacs" load-path))
3
4 ;; Enable these disabled commands
5 (put 'narrow-to-region 'disabled nil)
6 (put 'downcase-region 'disabled nil)
7 (put 'upcase-region 'disabled nil)
8
9 ;; Ensure turned off
10 (scroll-bar-mode 0)
11 (menu-bar-mode 0)
12
13 ;; Ensure turned on
14 (ido-mode 't)
15 (iswitchb-mode 't)
16 (global-font-lock-mode 't)
17 (column-number-mode 't)
18
19 ;; XXX: this should be conditional based on local configuration (i.e. machine-specific)
20 ;; For now, we require that local machines use this configuration:
21 ;; username == j3h
22 ;; GHC runtime == ~/haskell/runtime/ghc-6.12.3/bin
23 ;; ~/local/bin is where user scripts live
24 (setenv "PATH" (concat "/home/j3h/haskell/runtime/ghc-6.12.3/bin:/home/j3h/local/bin:" (getenv "PATH")))
25
26 ;; Only show enough of a buffer name to make it unique among open buffers
27 (require 'uniquify)
28 (setq uniquify-buffer-name-style 'forward)
29 (setq uniquify-separator "/")
30 (setq uniquify-after-kill-buffer-p t) ; rename after killing uniquified
31 (setq uniquify-ignore-buffers-re "^\\*") ; don't muck with special buffers
32
33 (global-set-key (kbd "C-c |") 'align-regexp)
34
35 ;; This keystroke got remapped in the default config. Perhaps I can
36 ;; live without it now?
37 (global-set-key (kbd "M-\\") 'delete-horizontal-space)
38 (global-set-key (kbd "<f12>") 'recompile)
39 (require 'inf-haskell)
40
41 ;; Load the keybindings for browse-kill-ring when available
42 (when (require 'browse-kill-ring nil 'noerror)
43 (browse-kill-ring-default-keybindings))
44
45 ;; Load the chrome edit server
46 ;; XXX: this causes trouble when an instance of emacs is starting and
47 ;; another already exists.
48 ;; (when (load-file "~/.config/emacs/chrome/servers/edit-server.el")
49 ;; (edit-server-start))
50
51 ;; Put customizations in their own file
52 (setq custom-file "~/.config/emacs/customize.el")
53 (load-file "~/.config/emacs/customize.el")
Something went wrong with that request. Please try again.