[Fix #764] Removed redundant command

`prelude-copy-file-name-to-clipboard` is redundant due to easy-kill package
This commit is contained in:
k1-hedayati 2015-01-15 11:31:46 +03:30
parent 5476324772
commit 37b72fb2f1
2 changed files with 1 additions and 12 deletions

View file

@ -181,16 +181,6 @@ point reaches the beginning or end of the buffer, stop there."
'display '(left-fringe right-triangle))
'modification-hooks '(prelude-todo-ov-evaporate)))
(defun prelude-copy-file-name-to-clipboard ()
"Copy the current buffer file name to the clipboard."
(interactive)
(let ((filename (if (equal major-mode 'dired-mode)
default-directory
(buffer-file-name))))
(when filename
(kill-new filename)
(message "Copied buffer file name '%s' to the clipboard." filename))))
(defun prelude-get-positions-of-line-or-region ()
"Return positions (beg . end) of the current line
or region."

View file

@ -87,8 +87,7 @@
("Files"
["Open with..." prelude-open-with]
["Delete file and buffer" prelude-delete-file-and-buffer]
["Rename buffer and file" prelude-rename-buffer-and-file]
["Copy file name to clipboard" prelude-copy-file-name-to-clipboard])
["Rename buffer and file" prelude-rename-buffer-and-file])
("Buffers"
["Clean up buffer or region" prelude-cleanup-buffer-or-region]