Просмотр исходного кода

Added small file for helper funs

Simon Watson 3 лет назад
Родитель
Сommit
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)))