.emacs.d/ag-settings.el
author Adam Gomaa <adam@gomaa.us>
Sun Dec 18 13:13:02 2011 -0500
changeset 521 67f37d330ad0
parent 505 7f98576a3fec
permissions -rw-r--r--
Remove project & _list_projects, I don't use them anymore.
adam@473
     1
(setq auto-save-timeout 5)
adam@473
     2
(setq autosave-dir )
adam@473
     3
(setq find-function-C-source-directory "~/var/srv/bzr.savannah.gnu.org/emacs/src")
gak9422e@0
     4
gak9422e@0
     5
gak9422e@0
     6
(setq require-final-newline t)
code@2
     7
code@2
     8
(setq standard-indent 4)
code@2
     9
(setq html-helper-basic-offset 4)
code@2
    10
(setq c-basic-offset 4)
code@2
    11
(setq html-basic-offset 4)
code@2
    12
(setq html-helper-item-continue-indent 4)
code@2
    13
(setq scroll-step 1)
adam@473
    14
code@2
    15
(setq-default indent-tabs-mode nil)
code@2
    16
(setq show-trailing-whitespace t)
code@2
    17
(setq transient-mark-mode t)
code@2
    18
(setq longlines-show-hard-newlines t)
adam@472
    19
; Someday, switch to 2.
code@382
    20
;(setq python-indent 2)
code@382
    21
(setq python-indent 4)
code@2
    22
adam@473
    23
; This could be a performance issue, so far it's OK
adam@473
    24
(global-auto-revert-mode 1)
adam@473
    25
adam@473
    26
adam@473
    27
; http://trey-jackson.blogspot.com/2008/03/emacs-tip-12-show-trailing-whitespace.html
adam@473
    28
; show trailing whitespace everywhere
adam@473
    29
(setq-default show-trailing-whitespace t)
adam@473
    30
adam@473
    31
code@290
    32
;; http://metapundit.net/sections/blog/239
code@290
    33
;; http://curiousprogrammer.wordpress.com/2009/04/28/emacs-hacks/
code@290
    34
;; http://trey-jackson.blogspot.com/2008/01/emacs-tip-11-uniquify.html
code@290
    35
;; http://www.emacswiki.org/emacs-es/uniquify
code@290
    36
(require 'uniquify)
code@296
    37
(setq uniquify-buffer-name-style 'reverse)
code@296
    38
(setq uniquify-separator ":")
code@290
    39
(setq uniquify-after-kill-buffer-p t)
code@290
    40
(setq uniquify-ignore-buffers-re "^\\*")
code@290
    41
adam@504
    42
adam@504
    43
;; http://emacsblog.org/2008/12/06/quick-tip-detaching-the-custom-file/
adam@504
    44
(setq custom-file "~/.emacs.d/ag-custom.el")
adam@504
    45
(load custom-file 'noerror)
adam@504
    46
adam@504
    47
;; Disable vc-mode entirely, greatly speeds up startup. I dont use
adam@504
    48
;; vc-mode, and AFAICT it spawns a VCS tool once per file, which is
adam@504
    49
;; kind of a drag with 1500 buffers in my desktop file.
adam@504
    50
(setq vc-handled-backends nil)
adam@504
    51
adam@504
    52
adam@504
    53
;; enable upcase/downcase-region
adam@504
    54
(put 'upcase-region 'disabled nil)
adam@504
    55
(put 'downcase-region 'disabled nil)
adam@504
    56
adam@520
    57
;(semantic-mode t)
adam@504
    58
gak9422e@0
    59
(provide 'ag-settings)