diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-21 07:50:25 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-21 07:50:25 +0200 |
commit | 2438bf6cadf3df5a0b3d2e127929804f97ad8e9d (patch) | |
tree | e7a962a49e099620588735c63256b0eecad884a1 /.config/emacs/init.el | |
parent | a450f822982a6d9e2fb310133ae8138dcc8bf66b (diff) |
emacs: Add support for a full-calc popup
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r-- | .config/emacs/init.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 1b4f7df..d5e4bd3 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -719,6 +719,19 @@ a semicolon following a return statement." (with-eval-after-load 'tempel (push (cons tempel-path #'lisp-data-mode) auto-mode-alist)) +;;; Popup Windows +(require 'popup) +(popup-define full-calc) +(use-package calc + :ensure nil + :config + (defun x-calc-quit () + (interactive) + (if (popupp) + (delete-frame) + (calc-quit :non-fatal))) + (evil-define-key 'normal 'calc-mode-map "q" #'x-calc-quit)) + ;;; Keybindings (defmacro x-define-bindings (&rest body) (declare (indent 0)) |