rm snippets, change zsh
This commit is contained in:
parent
3c1ebe6332
commit
96acb0ef2b
25 changed files with 49 additions and 2220 deletions
|
|
@ -6,6 +6,7 @@
|
|||
(add-to-list 'load-path "~/.emacs.d/auto-complete")
|
||||
(add-to-list 'load-path "~/.emacs.d/icicles")
|
||||
(add-to-list 'load-path "~/.emacs.d/tabbar")
|
||||
(add-to-list 'load-path "~/.emacs.d/evil")
|
||||
|
||||
|
||||
(fset 'yes-or-no-p 'y-or-n-p)
|
||||
|
|
@ -14,20 +15,22 @@
|
|||
(icy-mode 1)
|
||||
|
||||
; Requires
|
||||
(require 'vimpulse)
|
||||
;(require 'vimpulse)
|
||||
(require 'evil)
|
||||
(require 'color-theme)
|
||||
(require 'color-theme-autoloads)
|
||||
(require 'tabbar)
|
||||
;(require 'highlight-symbol)
|
||||
(require 'auto-complete-config)
|
||||
(evil-mode 1)
|
||||
|
||||
|
||||
;; Hack to get *Messages* in viper-mode.
|
||||
;; ;; (must be done after loading viper)
|
||||
;; ;; Futzing with fundamental-mode doesn't seem to help.
|
||||
(save-excursion
|
||||
(set-buffer "*Messages*")
|
||||
(viper-change-state-to-vi))
|
||||
;; (save-excursion
|
||||
;; (set-buffer "*Messages*")
|
||||
;; (viper-change-state-to-vi))
|
||||
|
||||
|
||||
(add-to-list 'ac-dictionary-directories "~/.emacs.d/auto-complete/dict")
|
||||
|
|
@ -35,11 +38,11 @@
|
|||
(setq ac-dwim t)
|
||||
(setq ac-expand-on-auto-complete nil)
|
||||
(setq ac-use-fuzzy t)
|
||||
(setq viper-search-wrap-around t)
|
||||
(setq viper-no-multiple-ESC t)
|
||||
(setq viper-translate-all-ESC-keysequences nil)
|
||||
(setq viper-always t)
|
||||
(setq viper-vi-style-in-minibuffer nil)
|
||||
;(setq viper-search-wrap-around t)
|
||||
;(setq viper-no-multiple-ESC t)
|
||||
;(setq viper-translate-all-ESC-keysequences nil)
|
||||
;(setq viper-always t)
|
||||
;(setq viper-vi-style-in-minibuffer nil)
|
||||
(setq-default indent-tabs-mode nil)
|
||||
;(define-key ac-completing-map "\t" 'ac-fuzzy-complete)
|
||||
;(define-key ac-completing-map "\r" nil)
|
||||
|
|
@ -75,13 +78,13 @@
|
|||
|
||||
(tabbar-mode)
|
||||
|
||||
(add-to-list 'ex-token-alist '("ls" (list-buffers)))
|
||||
(add-to-list 'ex-token-alist '("mx" (icicle-execute-extended-command)))
|
||||
(vimpulse-map "gn" 'tabbar-forward-tab)
|
||||
(vimpulse-map "gp" 'tabbar-backward-tab)
|
||||
(vimpulse-map "gw" 'vimpulse-search-forward-for-symbol-at-point)
|
||||
(vimpulse-map "gK" 'kill-buffer-and-window)
|
||||
(vimpulse-map "gc" 'kill-buffer-and-window)
|
||||
;(add-to-list 'ex-token-alist '("ls" (list-buffers)))
|
||||
;(add-to-list 'ex-token-alist '("mx" (icicle-execute-extended-command)))
|
||||
;(vimpulse-map "gn" 'tabbar-forward-tab)
|
||||
;(vimpulse-map "gp" 'tabbar-backward-tab)
|
||||
;(vimpulse-map "gw" 'vimpulse-search-forward-for-symbol-at-point)
|
||||
;(vimpulse-map "gK" 'kill-buffer-and-window)
|
||||
;(vimpulse-map "gc" 'kill-buffer-and-window)
|
||||
;(define-key viper-insert-global-user-map "\C-d" 'delete-char))
|
||||
|
||||
(add-hook 'window-setup-hook 'delete-other-windows)
|
||||
|
|
@ -126,12 +129,12 @@
|
|||
|
||||
(add-hook 'emacs-lisp-mode-hook (lambda () (highlight-parentheses-mode)))
|
||||
|
||||
(defadvice viper-maybe-checkout (around viper-svn-checkin-fix activate)
|
||||
"Advise viper-maybe-checkout to ignore svn files."
|
||||
(let ((file (expand-file-name (buffer-file-name buf))))
|
||||
(when (and (featurep 'vc-hooks)
|
||||
(not (memq (vc-backend file) '(nil SVN))))
|
||||
ad-do-it)))
|
||||
;(defadvice viper-maybe-checkout (around viper-svn-checkin-fix activate)
|
||||
;"Advise viper-maybe-checkout to ignore svn files."
|
||||
;(let ((file (expand-file-name (buffer-file-name buf))))
|
||||
;(when (and (featurep 'vc-hooks)
|
||||
;(not (memq (vc-backend file) '(nil SVN))))
|
||||
;ad-do-it)))
|
||||
|
||||
;; add a buffer modification state indicator in the tab label,
|
||||
;; and place a space around the label to make it looks less crowd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue