Browse Source

Add

master
10sr 8 months ago
parent
commit
4a61097cc2
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      emacs.el

+ 10
- 0
emacs.el View File

@@ -630,6 +630,16 @@ THEM are function and its args."
(setq-default fill-column 80)
;; (add-hook 'text-mode-hook 'turn-on-auto-fill)


;; kill ring
(defun my-kill-ring-save-buffer-file-name ()
"Save current buffer file name to kill ring."
(interactive)
(let* ((str (or buffer-file-name
default-directory))
(str (expand-file-name str)))
(kill-new str)))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; title and mode-line



Loading…
Cancel
Save