Skip to content

Instantly share code, notes, and snippets.

Created December 27, 2012 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4384294 to your computer and use it in GitHub Desktop.
Save anonymous/4384294 to your computer and use it in GitHub Desktop.
;; startup
(add-to-list 'load-path "~/emacs")
(setq inhibit-startup-message t)
(setq confirm-kill-emacs (quote y-or-n-p))
;; General settings
(setq indent-tabs-mode nil)
(setq line-number-mode t)
(setq column-number-mode t)
(setq require-final-newline nil)
(setq display-buffer-reuse-frames t)
(when (boundp 'osx-key-mode-map)
(define-key osx-key-mode-map (kbd "A-w") 'kill-this-buffer)
)
; Keep emacs from pooping backup files all over the place
(setq make-backup-files nil)
;; diff
(setq diff-switches "-u")
;;; perl ;;;
; See http://www.emacswiki.org/emacs/IndentingPerl
; cperl-mode is preferred to perl-mode
(defalias 'perl-mode 'cperl-mode)
(setq cperl-indent-level 4 ; 4 character indents
cperl-indent-parens-as-block t ; indent parens like blocks
cperl-continued-statement-offset 2
cperl-continued-brace-offset 0
cperl-close-paren-offset -4
cperl-tabs-always-indent nil
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment