Minor capturing changes
This commit is contained in:
parent
b067964930
commit
3c2c266009
2 changed files with 6 additions and 2 deletions
|
@ -188,11 +188,15 @@ And a less-disruptive keybinding:
|
|||
#+end_src
|
||||
* External Capturing
|
||||
Using =emacsclient=, the operating system or other applications can trigger a call to capture content into Emacs. I started with the functions from [[https://macowners.club/posts/org-capture-from-everywhere-macos/][this essay]], which made a nice approach to opening and closing a frame:
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(defun start-capture-frame (&optional template-key)
|
||||
"Create a new frame and run `org-capture'."
|
||||
(interactive)
|
||||
(make-frame '((name . "capture")
|
||||
(title . "Emacs Capture Window")
|
||||
(window-system . ns)
|
||||
(popup-frame . t)
|
||||
(top . 300)
|
||||
(left . 700)
|
||||
(width . 80)
|
||||
|
@ -216,7 +220,7 @@ Wouldn’t it be grand if when we finished capturing, the frame automatically cl
|
|||
#+end_src
|
||||
|
||||
This external shell script calls the function to kick everything off from applications that aren’t Emacs:
|
||||
#+begin_src sh :shebang "#!/bin/bash" :tangle ~/bin/emacs-capture
|
||||
#+begin_src sh :shebang "#!/bin/bash" :tangle ~/bin/emacs-capture :chmod 755
|
||||
/usr/local/bin/emacsclient -s work -n -e "(start-capture-frame)"
|
||||
#+end_src
|
||||
|
||||
|
|
|
@ -658,7 +658,7 @@ I appreciated [[https://github.com/abo-abo/ace-link][ace-link]]’s idea for hyp
|
|||
"o" 'link-hint-open-link))
|
||||
#+end_src
|
||||
|
||||
Can I open a link in another window? The idea with this is that I can select a link, and with multiple windows open, I can specify where the =*eww*= window should show the link. If only two windows, then the new EWW buffer shows in the /other/ one.
|
||||
Can I open a link in another window? The idea with this is that I can select a link, and with multiple windows open, I can specify where the =*eww*= window should show the link. If only two windows, then the new EWW buffer shows in the /src/ one.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(defun link-hint-open-link-ace-window ()
|
||||
|
|
Loading…
Reference in a new issue