Skip to content

Instantly share code, notes, and snippets.

@sivy
Created February 25, 2010 06:46
Show Gist options
  • Save sivy/314311 to your computer and use it in GitHub Desktop.
Save sivy/314311 to your computer and use it in GitHub Desktop.
;; sivy .emacs setup
;; misc environmental settings
;; hilite current line
(global-hl-line-mode 1)
;; Show line-number in the mode line
(line-number-mode 1)
;; new buffers are text
(setq default-major-mode 'text-mode)
;; textmate-mode
(add-to-list 'load-path "~/.emacs.d/vendor/textmate.el")
(require 'textmate)
(textmate-mode)
(add-to-list 'load-path
"~/.emacs.d/plugins/")
;; yasnippet
(add-to-list 'load-path
"~/.emacs.d/plugins/yasnippet-0.6.1c")
(require 'yasnippet) ;; not yasnippet-bundle
(yas/initialize)
(yas/load-directory "~/.emacs.d/plugins/yasnippet-0.6.1c/snippets")
;; cperl for the win
(defalias 'perl-mode 'cperl-mode)
(add-to-list 'auto-mode-alist '("\\.t$" . perl-mode))
;; perltidy
(autoload 'perltidy "perltidy-mode" nil t)
(autoload 'perltidy-mode "perltidy-mode" nil t)
; Makes perltidy-mode automatic for cperl-mode
(eval-after-load "perl-mode"
'(add-hook 'perl-mode-hook 'perltidy-mode))
(eval-after-load "cperl-mode"
'(add-hook 'cperl-mode-hook 'perltidy-mode))
;; markdown!
(autoload 'markdown-mode "markdown-mode.el"
"Major mode for editing Markdown files" t)
(setq auto-mode-alist
(cons '("\\.mdown" . markdown-mode) auto-mode-alist))
;; gist support -- not really working :-(
(add-to-list 'load-path "~/.emacs.d/vendor/gist.el")
(require 'gist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment