Explorar el Código

Added small file for helper funs

Simon Watson hace 3 años
padre
commit
0ce1bf39d9
Se han modificado 2 ficheros con 7 adiciones y 0 borrados
  1. 3 0
      emacs/.emacs-all
  2. 4 0
      emacs/elisp/helpers.el

+ 3 - 0
emacs/.emacs-all

@@ -202,6 +202,9 @@
 (global-set-key (kbd "C-c o") 'rclone-post-buffer)
 (global-set-key (kbd "C-c C-o") 'rclone-get-org)
 
+;; Small helper functions
+(load "~/Repos/dotfiles/emacs/elisp/helpers.el")
+(global-set-key (kbd "C-c C-x f") 'display-full-buffer-path)
 
 ;; Load for macOS
 ;;; Slime/etc

+ 4 - 0
emacs/elisp/helpers.el

@@ -0,0 +1,4 @@
+(defun display-full-buffer-path ()
+  (interactive)
+  "Little helper for showing full file path in minibuffer"
+  (message (buffer-file-name)))