Move hippie-expand configuration in spacemacs/init-hippie-exp
This commit is contained in:
parent
97b9e1eaad
commit
1b7777be36
|
@ -156,21 +156,6 @@ Can be installed with `brew install trash'."
|
|||
;; (add-hook 'window-configuration-change-hook
|
||||
;; (lambda ()
|
||||
;; (set-window-margins (car (get-buffer-window-list (current-buffer) nil t)) 0 0)))
|
||||
(global-set-key (kbd "M-/") 'hippie-expand) ;; replace dabbrev-expand
|
||||
|
||||
(setq
|
||||
hippie-expand-try-functions-list
|
||||
'(try-expand-dabbrev ;; Try to expand word "dynamically", searching the current buffer.
|
||||
try-expand-dabbrev-all-buffers ;; Try to expand word "dynamically", searching all other buffers.
|
||||
try-expand-dabbrev-from-kill ;; Try to expand word "dynamically", searching the kill ring.
|
||||
try-complete-file-name-partially ;; Try to complete text as a file name, as many characters as unique.
|
||||
try-complete-file-name ;; Try to complete text as a file name.
|
||||
try-expand-all-abbrevs ;; Try to expand word before point according to all abbrev tables.
|
||||
try-expand-list ;; Try to complete the current line to an entire line in the buffer.
|
||||
try-expand-line ;; Try to complete the current line to an entire line in the buffer.
|
||||
try-complete-lisp-symbol-partially ;; Try to complete as an Emacs Lisp symbol, as many characters as unique.
|
||||
try-complete-lisp-symbol) ;; Try to complete word as an Emacs Lisp symbol.
|
||||
)
|
||||
|
||||
;; Emacs 24.4 new features
|
||||
(unless (version< emacs-version "24.4")
|
||||
|
|
|
@ -74,6 +74,7 @@
|
|||
helm-swoop
|
||||
helm-themes
|
||||
highlight
|
||||
hippie-exp
|
||||
hl-anything
|
||||
hungry-delete
|
||||
ido-vertical-mode
|
||||
|
@ -1379,6 +1380,32 @@ which require an initialization must be listed explicitly in the list.")
|
|||
:init
|
||||
(evil-leader/set-key "Th" 'helm-themes)))
|
||||
|
||||
(defun spacemacs/init-hippie-exp ()
|
||||
(global-set-key (kbd "M-/") 'hippie-expand) ;; replace dabbrev-expand
|
||||
(setq hippie-expand-try-functions-list
|
||||
'(
|
||||
;; Try to expand word "dynamically", searching the current buffer.
|
||||
try-expand-dabbrev
|
||||
;; Try to expand word "dynamically", searching all other buffers.
|
||||
try-expand-dabbrev-all-buffers
|
||||
;; Try to expand word "dynamically", searching the kill ring.
|
||||
try-expand-dabbrev-from-kill
|
||||
;; Try to complete text as a file name, as many characters as unique.
|
||||
try-complete-file-name-partially
|
||||
;; Try to complete text as a file name.
|
||||
try-complete-file-name
|
||||
;; Try to expand word before point according to all abbrev tables.
|
||||
try-expand-all-abbrevs
|
||||
;; Try to complete the current line to an entire line in the buffer.
|
||||
try-expand-list
|
||||
;; Try to complete the current line to an entire line in the buffer.
|
||||
try-expand-line
|
||||
;; Try to complete as an Emacs Lisp symbol, as many characters as
|
||||
;; unique.
|
||||
try-complete-lisp-symbol-partially
|
||||
;; Try to complete word as an Emacs Lisp symbol.
|
||||
try-complete-lisp-symbol)))
|
||||
|
||||
(defun spacemacs/init-hl-anything ()
|
||||
(use-package hl-anything
|
||||
:defer t
|
||||
|
|
Loading…
Reference in a new issue