瀏覽代碼

Added small file for helper funs

Simon Watson 3 年之前
父節點
當前提交
0ce1bf39d9
共有 2 個文件被更改,包括 7 次插入0 次删除
  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)))