dotfiles / .emacs.d / ag-settings.el

;; TODO: do most (all?) of these through custom.
(setq auto-save-timeout 5)
(setq autosave-dir )
(setq find-function-C-source-directory "~/var/srv/bzr.savannah.gnu.org/emacs/src")


(setq require-final-newline t)

(setq standard-indent 4)
(setq html-helper-basic-offset 4)
(setq c-basic-offset 4)
(setq html-basic-offset 4)
(setq html-helper-item-continue-indent 4)
(setq scroll-step 1)

(setq-default indent-tabs-mode nil)
(setq show-trailing-whitespace t)
(setq transient-mark-mode t)
(setq longlines-show-hard-newlines t)
; Someday, switch to 2.
;(setq python-indent 2)
(setq python-indent 4)

; This could be a performance issue, so far it's OK
;(global-auto-revert-mode nil)


; http://trey-jackson.blogspot.com/2008/03/emacs-tip-12-show-trailing-whitespace.html
; show trailing whitespace everywhere
(setq-default show-trailing-whitespace t)


;; TODO: do this in custom.

;; http://metapundit.net/sections/blog/239
;; http://curiousprogrammer.wordpress.com/2009/04/28/emacs-hacks/
;; http://trey-jackson.blogspot.com/2008/01/emacs-tip-11-uniquify.html
;; http://www.emacswiki.org/emacs-es/uniquify
(require 'uniquify)
(setq uniquify-buffer-name-style 'reverse)
(setq uniquify-separator ":")
(setq uniquify-after-kill-buffer-p t)
(setq uniquify-ignore-buffers-re "^\\*")


;; http://emacsblog.org/2008/12/06/quick-tip-detaching-the-custom-file/
(setq custom-file "~/.emacs.d/ag-custom.el")
(load custom-file 'noerror)

;; Disable vc-mode entirely, greatly speeds up startup. I dont use
;; vc-mode, and AFAICT it spawns a VCS tool once per file, which is
;; kind of a drag with 1500 buffers in my desktop file.
;(setq vc-handled-backends nil)


;; enable upcase/downcase-region
(put 'upcase-region 'disabled nil)
(put 'downcase-region 'disabled nil)

;(semantic-mode t)

(provide 'ag-settings)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.