doomemacs/modules/app/everywhere
2021-02-08 09:22:25 +08:00
..
cli.el
config.el
doctor.el
packages.el
README.org

app/everywhere

Description

This module adds system-wide popup Emacs windows for quick edits.

Maintainers

Module Flags

This module provides no flags.

Prerequisites

On Linux xclip, xdotool, xprop, and xwininfo are needed.

On MacOS, Emacs must be allowed to "control your computer" under Settings > Accessibility.

Features

To use this, invoke the emacs-everywhere executable. This can be done in two ways:

  • emacsclient --eval "(emacs-everywhere)"
  • doom everywhere

It is recommended that you add a keybinding for this.

From here, you can edit away to your hearts content in the created frame, then return to the original window and paste the content with C-c C-c or SPC q f. To exit without pasting, use C-c C-k.

Configuration

emacs-everywhere likes to guess if you triggered it from an application which supports markdown. Configure emacs-everywhere-markdown-windows and emacs-everywhere-markdown-apps to improve how accurate this is on your system.

By default, when markdown is detected, markdown-mode is used. It is possible to instead use pandoc to convert the content to Org (and export to markdown when closing the frame) by setting emacs-everywhere-major-mode-function to #'org-mode.

Most other behaviour is implemented as hooks on emacs-everywhere-init-hooks.