summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-06-03 21:47:34 +0100
committerjao <jao@gnu.org>2022-06-03 21:48:12 +0100
commitb4859427fea14ef670c54d5efa33521c272052be (patch)
tree51fb2cb7b088e6f418ed387fab23cbb41e07187b /init.org
parentf236e6cb9b9970840a47c2c7ad4ec2134da167d1 (diff)
downloadelibs-b4859427fea14ef670c54d5efa33521c272052be.tar.gz
elibs-b4859427fea14ef670c54d5efa33521c272052be.tar.bz2
pop-up graphical frame
Diffstat (limited to 'init.org')
-rw-r--r--init.org11
1 files changed, 11 insertions, 0 deletions
diff --git a/init.org b/init.org
index 2b78ec4..f63c579 100644
--- a/init.org
+++ b/init.org
@@ -648,6 +648,16 @@
select-enable-primary t
selection-timeout 100)
#+END_SRC
+*** pop-up frames
+ #+begin_src emacs-lisp
+ (defun jao-open-in-x-frame (&optional width height)
+ (interactive)
+ (make-frame `((window-system . x)
+ (name . "emacs popup")
+ (width . ,(or width (window-width)))
+ (height . ,(or height (window-height)))))
+ (define-key (current-local-map) "q" #'delete-frame))
+ #+end_src
*** xmobar
#+begin_src emacs-lisp
(defun jao-xmobar-kill ()
@@ -3367,6 +3377,7 @@
(global-set-key "\C-xr\M-w" #'kill-rectangle-save)
(global-set-key "\C-c\C-z" #'comment-or-uncomment-region)
(global-set-key "\C-z" #'comment-or-uncomment-region)
+ (global-set-key (kbd "C-c W") #'jao-open-in-x-frame)
#+end_src
* Last minute (post.el)
#+begin_src emacs-lisp