From: Andreas Gerler Date: Wed, 7 Sep 2022 16:49:03 +0000 (+0200) Subject: hippie-expand to replace dabbrev-expand X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=0065e1999a1bc10a6b0ec5b61b026225d66d17a9;p=emacsconfig.git hippie-expand to replace dabbrev-expand Signed-off-by: Andreas Gerler --- diff --git a/bba.org b/bba.org index 4ab5e49d..f5ab9814 100644 --- a/bba.org +++ b/bba.org @@ -4164,6 +4164,8 @@ coffee mug (define-key global-map (kbd "s-L") 'bba-dict) #+END_SRC + + * [[http://ergoemacs.org/emacs/emacs_navigating_keys_for_brackets.html][Xah Lee Move cursor to Bracket]] [2017-03-27 Mon 22:41] @@ -4449,7 +4451,21 @@ character before any spaces." (define-key global-map (kbd "M-@") 'cycle-spacing) (define-key global-map (kbd "M-SPC") 'cycle-spacing) - (define-key global-map (kbd "S-SPC") 'dabbrev-expand) + ;; (define-key global-map (kbd "S-SPC") 'dabbrev-expand) + (define-key global-map (kbd "S-SPC") 'hippie-expand) + + (setq hippie-expand-try-functions-list + '(try-expand-dabbrev + try-expand-dabbrev-all-buffers + try-complete-file-name-partially + try-complete-file-name + try-expand-all-abbrevs + try-expand-list + try-expand-line + try-expand-dabbrev-from-kill + try-complete-lisp-symbol-partially + try-complete-lisp-symbol)) + (define-key global-map (kbd "s-r") 'repeat) (define-key global-map "\C-x\S-f" 'find-file-at-point)