summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-03-15 11:12:15 +0100
committerAlan Pearce2023-03-15 11:12:15 +0100
commit430c9b662fc8da9dda332f52243c5909fff7cc5d (patch)
tree2c4756eb07c8094ae4e0835f4efd1aff0f72f103 /user
parent6db9eaad8e78f882ae44a28edcc4d11d2ffd5e28 (diff)
downloadnixfiles-430c9b662fc8da9dda332f52243c5909fff7cc5d.tar.lz
nixfiles-430c9b662fc8da9dda332f52243c5909fff7cc5d.tar.zst
nixfiles-430c9b662fc8da9dda332f52243c5909fff7cc5d.zip
Emacs: use C-x C-f to complete filenames in insert mode
Diffstat (limited to 'user')
-rw-r--r--user/emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index c7ac3c67..fc41c282 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -566,7 +566,8 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
               [return]))
   :general
   (:states 'insert
-           "TAB" #'company-indent-or-complete-common)
+           "TAB" #'company-indent-or-complete-common
+           "C-x C-f" #'company-files)
   (:keymaps 'company-active-map
             "TAB" #'company-complete-common-or-cycle
             "<tab>" #'company-complete-common-or-cycle