Skip to content

An Emacs extension that save clipboard image to disk file, and insert file link to current point.

License

Notifications You must be signed in to change notification settings

dnxbjyj/pasteex-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's this?

It's an Emacs extension, using it you can just use one key to save clipboard image to disk file, and at the same time insert the file link(org-mode/markdown-mode) or file path(other mode) to current point.

Based on PasteEx, only support Windows.

Prerequisite

Installation

Put pasteex-mode.el to your load-path. The load-path is usually ~/elisp/. It's set in your ~/.emacs file like this:

(add-to-list 'load-path (expand-file-name "~/elisp"))
(require 'pasteex-mode)

Usage

  • Add PasteEx.exe executable to environment PATH, or set the variable pasteex-executable-path in your config file, like this:
(setq pasteex-executable-path "D:/program/PasteEx/PasteEx.exe")
  • Bind your favorite key to function pasteex-image, like this:
(global-set-key (kbd "C-x p i") 'pasteex-image)
  • After you make a screenshot to clipboard, or copy a PNG image file to clipboard, then just press C-x p i shortcut, and the file link or path will be inserted to your buffer immediately, the screenshot image file is saved to ./img/ directory by default.

Tips

  • Only support Windows, because PasteEx only support Windows now.
  • That's all, enjoy it :)

About

An Emacs extension that save clipboard image to disk file, and insert file link to current point.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •