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

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

(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)

; show trailing whitespace everywhere
(setq-default show-trailing-whitespace t)

;; TODO: do this in custom.

(require 'uniquify)
(setq uniquify-buffer-name-style 'reverse)
(setq uniquify-separator ":")
(setq uniquify-after-kill-buffer-p t)
(setq uniquify-ignore-buffers-re "^\\*")

(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)