Skip to content

Instantly share code, notes, and snippets.

@jmingtan
Created November 19, 2012 04:29
Show Gist options
  • Save jmingtan/4108965 to your computer and use it in GitHub Desktop.
Save jmingtan/4108965 to your computer and use it in GitHub Desktop.
emacs config
;; GUI configuration
(blink-cursor-mode 1)
(scroll-bar-mode -1)
(tool-bar-mode -1)
;; Escape key mod
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
;; ido mode configuration
(ido-mode 1)
;; backup configuration
(setq
backup-by-copying t ; don't clobber symlinks
backup-directory-alist
'(("." . "~/.saves")) ; don't litter my fs tree
delete-old-versions t
kept-new-versions 6
kept-old-versions 2
version-control t) ; use versioned backups
;; ------------- org-mode config -------------
;; recommended settings
(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
;; turn on auto word wrap for org mode
(add-hook 'org-mode-hook 'turn-on-auto-fill)
;(add-hook 'org-mode-hook 'org-indent-mode)
;; babel diagramming addons
(setq org-plantuml-jar-path "~/bin/utils/plantuml.jar")
(setq org-ditaa-jar-path "~/bin/utils/ditaa0_9.jar")
(org-babel-do-load-languages
(quote org-babel-load-languages)
(quote ((emacs-lisp . t)
(dot . t)
(ditaa . t)
(R . t)
(python . t)
(ruby . t)
(gnuplot . t)
(clojure . t)
(sh . t)
(ledger . t)
(org . t)
(plantuml . t)
(latex . t))))
(add-to-list 'org-src-lang-modes (quote ("plantuml" . fundamental)))
;; Do not prompt to confirm evaluation
(setq org-confirm-babel-evaluate nil)
;; syntax highlighting for code blocks
(setq org-src-fontify-natively t)
;; ------------- EXTERNAL PACKAGES -------------
(require 'package)
(add-to-list 'package-archives
'("marmalade" .
"http://marmalade-repo.org/packages/"))
(add-to-list 'package-archives
'("melpa" .
"http://melpa.milkbox.net/packages/") t)
(package-initialize)
;; load path for add ons
(let ((default-directory "~/.emacs.d/lisp/"))
(normal-top-level-add-subdirs-to-load-path))
(require 'color-theme)
(color-theme-initialize)
(require 'evil)
(evil-mode)
(require 'clojure-mode)
(require 'minimap)
(require 'helm-config)
(defun helm-my ()
"Modified helm-mini with additional sources"
(interactive)
(helm-other-buffer '(helm-c-source-bookmarks
helm-c-source-buffers-list
helm-c-source-recentf
helm-c-source-files-in-current-dir
helm-c-source-buffer-not-found)
"*helm my*"))
(global-set-key (kbd "C-x a") 'helm-my)
(helm-mode 1)
(require 'nav)
(nav-disable-overeager-window-splitting)
(global-set-key (kbd "C-c n") 'nav-toggle)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment