If the region is selected, copy the region.
If not, copy thing-at-point with message.
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)
- thing-at-point: When your cursor on the symbol, you can copy it
- region: When you selected the region, you can copy the region
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)