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