/cool-copy.el

simple but helpful copy tool

Primary LanguageEmacs Lisp

Cool Copy

If the region is selected, copy the region.
If not, copy thing-at-point with message.

Image from Gyazo

Setup

git clone and edit your init.el as below.

(add-to-list 'load-path "YOUR PATH")
(require 'cool-copy)

;; optional
(global-set-key [YOUR KEY] 'cool-copy)

Usage

  • thing-at-point: When your cursor on the symbol, you can copy it
  • region: When you selected the region, you can copy the region

Custom

you can select the prefer method for showing the message.

;; show message on minibuffer (default)
(setq cool-copy-show 'minibuffer)
;; show message on posframe
(setq cool-copy-show 'posframe)
;; do not show message
(setq cool-copy-show nil)