Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (43 sloc) 1.84 KB
;; Let us load files from this configuration directory
(setq load-path (cons "~/.config/emacs" load-path))
;; Enable these disabled commands
(put 'narrow-to-region 'disabled nil)
(put 'downcase-region 'disabled nil)
(put 'upcase-region 'disabled nil)
;; Ensure turned off
(scroll-bar-mode 0)
(menu-bar-mode 0)
;; Ensure turned on
(ido-mode 't)
(iswitchb-mode 't)
(global-font-lock-mode 't)
(column-number-mode 't)
;; XXX: this should be conditional based on local configuration (i.e. machine-specific)
;; For now, we require that local machines use this configuration:
;; username == j3h
;; GHC runtime == ~/haskell/runtime/ghc-6.12.3/bin
;; ~/local/bin is where user scripts live
(setenv "PATH" (concat "/home/j3h/haskell/runtime/ghc-6.12.3/bin:/home/j3h/local/bin:" (getenv "PATH")))
;; Only show enough of a buffer name to make it unique among open buffers
(require 'uniquify)
(setq uniquify-buffer-name-style 'forward)
(setq uniquify-separator "/")
(setq uniquify-after-kill-buffer-p t) ; rename after killing uniquified
(setq uniquify-ignore-buffers-re "^\\*") ; don't muck with special buffers
(global-set-key (kbd "C-c |") 'align-regexp)
;; This keystroke got remapped in the default config. Perhaps I can
;; live without it now?
(global-set-key (kbd "M-\\") 'delete-horizontal-space)
(global-set-key (kbd "<f12>") 'recompile)
(require 'inf-haskell)
;; Load the keybindings for browse-kill-ring when available
(when (require 'browse-kill-ring nil 'noerror)
;; Load the chrome edit server
;; XXX: this causes trouble when an instance of emacs is starting and
;; another already exists.
;; (when (load-file "~/.config/emacs/chrome/servers/edit-server.el")
;; (edit-server-start))
;; Put customizations in their own file
(setq custom-file "~/.config/emacs/customize.el")
(load-file "~/.config/emacs/customize.el")