emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* OT: remember'ing from other programs with stumpwm
@ 2007-07-05  5:39 Dmitri Minaev
  2007-07-05 12:17 ` Nikos Apostolakis
  2007-07-05 18:45 ` Scott Jaderholm
  0 siblings, 2 replies; 8+ messages in thread
From: Dmitri Minaev @ 2007-07-05  5:39 UTC (permalink / raw)
  To: emacs-orgmode

Sorry for off-topic, but in the absence of stumpwm-users list, this
place is just as good as any other :)

The ability of remember-mode to store notes with links to other
buffers is great, but I always wanted to use it to store clips from
other programs, especially Firefox and Thunderbird. I do use gnus
sometimes, but I'm not proficient enough with it. At last, I installed
stumpwm window manager. After some tries and crashes, I can now select
a part of a web page in Firefox, press one key and it is pasted into a
new remember buffer. The result is like this:

* Pasted clips
** Thu Jul  5 09:36:38 2007 (eon - Mozilla Firefox)
   eon - Mozilla Firefox
   Eon is a rich content linking/annotation mechanism with multiple
   interface styles. Its primitives may be combined with each other and
   with other emacs modules to produce a variety of behaviors similar to
   the features of the above-mentioned packages.
** Thu Jul  5 10:06:17 2007 (Roman Empire: gold standard of
immigration - Los Angeles Tim)
   Roman Empire: gold standard of immigration - Los Angeles Times -
   Mozilla Firefox
   There's a widespread view that the Roman Empire was swept away mainly
   by a relentless tide of hostile outsiders; we've all heard ugly
   references to the "barbarian hordes" in today's immigration
   debates. But the truth is that Rome was the world's most successful
   multiethnic state until our own \u2014 and history's longest lasting
   one, bar none.

   So it's natural to wonder if the Romans might have anything to teach
   Americans. I'd argue that they do. One lesson is that the notion of
   "taking control of the borders" is overrated; borders were pliable
   then, and are even harder to define (or police) now. A second lesson
   is the importance of nurturing a national culture. It was the source
   of Rome's power, just as it is the source of ours.

Obviously, one thing is missing here -- the URL. Unfortunately, I
couldn't find a way to retrieve it from Firefox programmatically.
Anyway, in most occasions, it is enough to just select the URL in the
address bar and to paste it into the remember buffer with some
comments. After all, the window title often contains all the
information I need, like here:

** Thu Jul  5 10:06:40 2007 (Chinese archaeologists locate sunken ship
laden with Ming Dy)
   Chinese archaeologists locate sunken ship laden with Ming Dynasty
   porcelain - Mozilla Firefox
   http://thestar.com.my/news/story.asp?file=/2007/6/14/apworld/20070614201348&sec=apworld

And, finally, Thunderbird. Once again, I cannot get the necessary
metadata other than from the window title, like here:

** Thu Jul  5 10:21:19 2007 (Re: [CLASSICS-L] Book collection software
- Thunderbird)
   Re: [CLASSICS-L] Book collection software - Thunderbird
   > > Like many Classics-L members, I'd suppose, I have too many books
   scattered
   > > around, and I'd like to get some control over them. I'm looking
   for a
   > > fairly simple, fairly basic program for Mac OS X that would allow
   me to
   > > enter data like author, title, publisher, date and maybe some
   additional
   > > notes. I once used ProCite, which was quite good but is no longer
   > > available for the Mac. Offline responses would be fine:
   > > aszegedymasz*AT*wesleyan.edu

   Have you looked into LibraryThing?  Go to:
    http://www.librarything.com/

To get all this working, I just had to set up remember-mode
(shamelessly copying the instructions from the org-mode manual) and to
add the following into ~/.stumpwmrc file:

(define-stumpwm-command "emacs-remember" ()
  (let ((window-name (if (current-window) (window-title
(current-window)) "No current window")))
    (run-or-raise "emacs" :class "Emacs")
    (send-meta-key (current-screen) (kbd "M-x"))
    (window-send-string (current-window) "org-remember")
    (send-meta-key (current-screen) (kbd "RET"))
    (window-send-string (current-window) "f")
    (window-send-string (current-window) window-name)
    (send-meta-key (current-screen) (kbd "RET"))
    (window-send-string (current-window) (get-x-selection))))
(define-key *top-map* (kbd "F12") "emacs-remember")

-- 
With best regards,
Dmitri Minaev

Russian history blog: http://minaev.blogspot.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-07-06 13:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-05  5:39 OT: remember'ing from other programs with stumpwm Dmitri Minaev
2007-07-05 12:17 ` Nikos Apostolakis
2007-07-05 18:45 ` Scott Jaderholm
2007-07-05 20:49   ` Dmitri Minaev
2007-07-06  6:17     ` Dmitri Minaev
2007-07-06 11:24     ` Jason F. McBrayer
2007-07-06 12:28       ` Dmitri Minaev
2007-07-06 13:12         ` Jason F. McBrayer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).