summaryrefslogtreecommitdiffstats
path: root/lisp/init-editing.el
diff options
context:
space:
mode:
authorMartin Polden <martin.polden@gmail.com>2014-06-05 13:16:51 +0200
committerMartin Polden <martin.polden@gmail.com>2014-06-05 13:16:51 +0200
commit8194fe61812f7662b76a31b5aab564d7779c6f0c (patch)
tree3e0176172bc053368e853b133c106f26aaed46b4 /lisp/init-editing.el
parent77ad68798e6f42d68442cdc0db134f7025abf9de (diff)
Add keybinding for showing file name in minibuffer
Diffstat (limited to 'lisp/init-editing.el')
-rw-r--r--lisp/init-editing.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/init-editing.el b/lisp/init-editing.el
index 1ae7a3e..50ca807 100644
--- a/lisp/init-editing.el
+++ b/lisp/init-editing.el
@@ -53,4 +53,11 @@
;; C-c . repeats last command
(global-set-key (kbd "C-c .") 'repeat)
+(defun show-file-name ()
+ "Show the full path file name in the minibuffer."
+ (interactive)
+ (message buffer-file-name))
+
+(global-set-key (kbd "C-c f") 'show-file-name)
+
(provide 'init-editing)