From 37b72fb2f1b50aedc2e848203a02a1379ac57950 Mon Sep 17 00:00:00 2001 From: k1-hedayati Date: Thu, 15 Jan 2015 11:31:46 +0330 Subject: [PATCH] [Fix #764] Removed redundant command `prelude-copy-file-name-to-clipboard` is redundant due to easy-kill package --- core/prelude-core.el | 10 ---------- core/prelude-mode.el | 3 +-- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/core/prelude-core.el b/core/prelude-core.el index e0a96dd..389eb75 100644 --- a/core/prelude-core.el +++ b/core/prelude-core.el @@ -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." diff --git a/core/prelude-mode.el b/core/prelude-mode.el index fda439f..39bfdcc 100644 --- a/core/prelude-mode.el +++ b/core/prelude-mode.el @@ -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]