Skip to content

Instantly share code, notes, and snippets.

@tavoaqp-zz
Created June 15, 2015 17:51
Show Gist options
  • Save tavoaqp-zz/63666fbf15dfdcd4a2c3 to your computer and use it in GitHub Desktop.
Save tavoaqp-zz/63666fbf15dfdcd4a2c3 to your computer and use it in GitHub Desktop.
my emacs configuration
(when (>= emacs-major-version 24)
(require 'package)
(package-initialize)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
)
(require 'grizzl)
(projectile-global-mode)
(setq projectile-enable-caching t)
(setq projectile-completion-system 'grizzl)
;; Press Command-p for fuzzy find in project
(global-set-key (kbd "s-p") 'projectile-find-file)
;; Press Command-b for fuzzy switch buffer
(global-set-key (kbd "s-b") 'projectile-switch-to-buffer)
(add-hook 'ruby-mode-hook 'robe-mode)
(setq exec-path (append exec-path '("/Users/gustavo.torres/bin")))
;;(require 'ensime)
;;(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)
;;(require 'ecb)
(require 'workgroups2)
(require 'popwin)
(popwin-mode 1)
(require 'direx)
(push '(direx:direx-mode :position left :width 25 :dedicated t)
popwin:special-display-config)
(global-set-key (kbd "C-x C-j") 'direx:jump-to-directory)
(setq default-input-method "MacOSX")
;; (setq mac-option-key-is-meta nil
;; mac-command-key-is-meta t
;; mac-command-modifier 'meta
;; mac-option-modifier 'none)
;;(desktop-save-mode 0)
;;(add-to-list 'load-path "/Users/gustavo.torres/tools/emacs_modules/emms-4.0/lisp/")
;;(require 'emms-setup)
;;(emms-all)
;;(emms-default-players)
(add-to-list 'load-path "/Users/gustavo.torres/tools/emacs_modules/")
(require 'ag)
(require 'flyspell-lazy)
(flyspell-lazy-mode 1)
(flyspell-mode 1)
(setq flyspell-issue-message-flg nil)
(add-hook 'ruby-mode-hook
(lambda () (flyspell-prog-mode)))
(add-hook 'web-mode-hook
(lambda () (flyspell-prog-mode)))
;; flyspell mode breaks auto-complete mode without this.
;;(ac-flyspell-workaround)
(require 'textmate)
(textmate-mode)
(require 'org)
(org-mode)
;; (ecb-activate)
;;(linum-mode)
(setq sql-connection-alist
'((server1 (sql-product 'mysql)
(sql-port 3306)
(sql-server "192.168.59.14")
(sql-user "emacs")
(sql-password "")
(sql-database ""))))
(add-hook 'sql-interactive-mode-hook
(lambda ()
(toggle-truncate-lines t)))
(workgroups-mode 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment