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
|
#+end_src
|
||||||
* External Capturing
|
* 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:
|
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
|
#+begin_src emacs-lisp
|
||||||
(defun start-capture-frame (&optional template-key)
|
(defun start-capture-frame (&optional template-key)
|
||||||
"Create a new frame and run `org-capture'."
|
"Create a new frame and run `org-capture'."
|
||||||
(interactive)
|
(interactive)
|
||||||
(make-frame '((name . "capture")
|
(make-frame '((name . "capture")
|
||||||
|
(title . "Emacs Capture Window")
|
||||||
|
(window-system . ns)
|
||||||
|
(popup-frame . t)
|
||||||
(top . 300)
|
(top . 300)
|
||||||
(left . 700)
|
(left . 700)
|
||||||
(width . 80)
|
(width . 80)
|
||||||
|
@ -216,7 +220,7 @@ Wouldn’t it be grand if when we finished capturing, the frame automatically cl
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
This external shell script calls the function to kick everything off from applications that aren’t Emacs:
|
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)"
|
/usr/local/bin/emacsclient -s work -n -e "(start-capture-frame)"
|
||||||
#+end_src
|
#+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))
|
"o" 'link-hint-open-link))
|
||||||
#+end_src
|
#+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
|
#+begin_src emacs-lisp
|
||||||
(defun link-hint-open-link-ace-window ()
|
(defun link-hint-open-link-ace-window ()
|
||||||
|
|
Loading…
Reference in a new issue