Skip to content

Instantly share code, notes, and snippets.

@bergmark
Created June 2, 2014 00:24
Show Gist options
  • Save bergmark/3a80748b941fcac91268 to your computer and use it in GitHub Desktop.
Save bergmark/3a80748b941fcac91268 to your computer and use it in GitHub Desktop.
;; Projectile
(progn
(require 'projectile)
(projectile-global-mode)
(setq projectile-indexing-method 'alien)
(setq projectile-enable-caching t))
;; Relax the GC
(setq gc-cons-threshold 20000000)
;; Better IDO completion
(progn
(require 'flx-ido)
(ido-mode 1)
(ido-everywhere 1)
(flx-ido-mode 1)
; (require 'ido-ubiquitous)
(setq ido-use-faces nil))
;; find-file-in-project as the default find-file
(global-set-key "\C-x\C-f" 'projectile-find-file)
;; Uniquify buffer names
(require 'uniquify)
(setq uniquify-buffer-name-style 'reverse)
(setq uniquify-separator "/")
; Rename after killing uniquified.
(setq uniquify-after-kill-buffer-p t)
; Don't muck with special buffers.
(setq uniquify-ignore-buffers-re "^\\*")
;; Enable editable dired mode.
(add-hook 'dired-mode-hook
(lambda ()
(define-key dired-mode-map
"r" 'wdired-change-to-wdired-mode)
(setq truncate-lines t)))
;; Enable a in dired mode to view a file w/o creating a new buffer.
(put 'dired-find-alternate-file 'disabled nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment