* Org Mode dedicated app on OS X
@ 2011-07-05 4:19 Ken Mankoff
2011-07-05 7:23 ` Stefan Vollmar
0 siblings, 1 reply; 5+ messages in thread
From: Ken Mankoff @ 2011-07-05 4:19 UTC (permalink / raw)
To: emacs-orgmode
Hi,
I'm just beginning to use org-mode on OS X. I'm in a terminal a lot,
and in Aquamacs Emacs a lot too, but not all the time. To make it
easier to use org-mode, I would like to give it a dedicated app with
the org-mode icon (unicorn) in the dock. Is there a way to do this?
Fluid.app is a single site browser (SSB) that sort of turns web
pages into desktop apps. I would like something similar for Emacs.
I think one way might be to make a copy of Aquamacs Emacs, change
the icon, and then edit the "info.plist" or some internal file so
that when it launches it launches directly into org-mode, loading
some keystrokes to my default view.
Has anyone else done something similar? Is anyone else interested in
something like this? Any suggestions how to go about doing it?
Thanks,
-k.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Org Mode dedicated app on OS X
2011-07-05 4:19 Org Mode dedicated app on OS X Ken Mankoff
@ 2011-07-05 7:23 ` Stefan Vollmar
2011-07-05 14:48 ` Ken Mankoff
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Vollmar @ 2011-07-05 7:23 UTC (permalink / raw)
To: Org Mode Mailing List; +Cc: Ken Mankoff
[-- Attachment #1: Type: text/plain, Size: 2201 bytes --]
Dear Ken,
you could start with an Emacs-typical approach by editing your ~/.emacs-file so that .org-files are automatically opened with org-mode, also adding any other keyboard shortcuts you find useful, see
http://orgmode.org/guide/Activation.html#Activation
If you put this line into your .bashrc file:
alias e="open -a /Applications/Aquamacs.app/"
you can do this from the commandline:
e somefile.org
and it will be opened in Aquamacs (using an existing instance of Aquamacs if it is already open - I find that I have Aquamacs open all the time).
One way of changing the icon is to copy Aquamacs.app, then using an icon editor (e.g. the one from the Apple's Developer Kit). A simpler way is this:
http://support.apple.com/kb/ht2493
If you are thinking about a distribution-like approach (so it works "out-of-the-box" for others) you would probably need to copy your changes to a
/Applications/Aquamacs.app/Contents/Resources/site-lisp
directory.
Hope this helps,
Stefan
On 05.07.2011, at 06:19, Ken Mankoff wrote:
> Hi,
>
> I'm just beginning to use org-mode on OS X. I'm in a terminal a lot, and in Aquamacs Emacs a lot too, but not all the time. To make it easier to use org-mode, I would like to give it a dedicated app with the org-mode icon (unicorn) in the dock. Is there a way to do this?
>
> Fluid.app is a single site browser (SSB) that sort of turns web pages into desktop apps. I would like something similar for Emacs.
>
> I think one way might be to make a copy of Aquamacs Emacs, change the icon, and then edit the "info.plist" or some internal file so that when it launches it launches directly into org-mode, loading some keystrokes to my default view.
>
> Has anyone else done something similar? Is anyone else interested in something like this? Any suggestions how to go about doing it?
>
> Thanks,
>
> -k.
>
--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213 FAX +49-221-4726-298
Tel.: +49-221-478-5713 Mobile: 0160-93874279
Email: vollmar@nf.mpg.de http://www.nf.mpg.de
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4409 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Org Mode dedicated app on OS X
2011-07-05 7:23 ` Stefan Vollmar
@ 2011-07-05 14:48 ` Ken Mankoff
2011-07-05 19:39 ` Rasmus
2011-07-06 8:56 ` Stefan Vollmar
0 siblings, 2 replies; 5+ messages in thread
From: Ken Mankoff @ 2011-07-05 14:48 UTC (permalink / raw)
To: Stefan Vollmar; +Cc: Org Mode Mailing List
Hi Stefan,
Thanks for the tips. Most already done.
On Tue, 5 Jul 2011, Stefan Vollmar wrote:
> you could start with an Emacs-typical approach by editing your
> ~/.emacs-file so that .org-files are automatically opened with
> org-mode
Yes I've followed the initial instructions and love that emacs knows
modes based on file extension and/or content.
> If you put this line into your .bashrc file:
> alias e="open -a /Applications/Aquamacs.app/"
> you can do this from the commandline:
> e somefile.org
I use this:
eee() { if [ ! -e "$@" ]; then touch "$@"; fi; /sw/bin/launch -m -a Aquamacs "$@"; }
I also have copied Aquamacs.app, renamed it OrgMode.app, and have
the unicorn as the icon. I'm a bit stuck on the last step you
suggest.
> If you are thinking about a distribution-like approach (so it
> works "out-of-the-box" for others) you would probably need to copy
> your changes to a
>
> /Applications/Aquamacs.app/Contents/Resources/site-lisp
>
> directory.
I don't need it to distribute it to 3rd parties, but I'm not opposed
to setting it up like that. What files should I put in the
directory? And what contents? And how do I get emacs to auto-load
them? I'm still figuring out a workflow so please let me know if
this makes sense, but I'm picturing something like this:
* I launch my OrgMode.app
* It opens and (via its internal site-lisp magic) loads
~/Dropbox/Org/index.org
* index.org is a file I'll maintain manually that links to my other
org files so I can access them using the inter-linking ability in
org-mode
* If something like index.org can be automated that would be OK, but
I don't mind maintaning it as my meta-org file. Perhaps based on
something like I have now in my .emacs:
(setq org-agenda-files (list "~/Dropbox/org/foo.org"
"~/Dropbox/org/bar.org))
-k.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Org Mode dedicated app on OS X
2011-07-05 14:48 ` Ken Mankoff
@ 2011-07-05 19:39 ` Rasmus
2011-07-06 8:56 ` Stefan Vollmar
1 sibling, 0 replies; 5+ messages in thread
From: Rasmus @ 2011-07-05 19:39 UTC (permalink / raw)
To: emacs-orgmode
How about
emacsclient -ca "" --eval "(org-mode)"
or just your index.org file:
emacsclient -ca "" ~/index.org
In Gnome or other fancy DE you'd just create a .desktop file to make an
entry in your launcher. I don't know how one does something similar in
Macs.
–Rasmus
--
Sent from my Emacs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Org Mode dedicated app on OS X
2011-07-05 14:48 ` Ken Mankoff
2011-07-05 19:39 ` Rasmus
@ 2011-07-06 8:56 ` Stefan Vollmar
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Vollmar @ 2011-07-06 8:56 UTC (permalink / raw)
To: Ken Mankoff; +Cc: Org Mode Mailing List
[-- Attachment #1: Type: text/plain, Size: 2631 bytes --]
Dear Ken,
On 05.07.2011, at 16:48, Ken Mankoff wrote:
> Thanks for the tips. Most already done.
Excellent!
> [...]
> I also have copied Aquamacs.app, renamed it OrgMode.app, and have the unicorn as the icon. I'm a bit stuck on the last step you suggest.
>
>> If you are thinking about a distribution-like approach (so it works "out-of-the-box" for others) you would probably need to copy your changes to a
>>
>> /Applications/Aquamacs.app/Contents/Resources/site-lisp
>>
>> directory.
>
> I don't need it to distribute it to 3rd parties, but I'm not opposed to setting it up like that. What files should I put in the directory? And what contents? And how do I get emacs to auto-load them?
I have a half-finished project that uses a slightly different approach: we did a course teaching some principles of computer programming and imaging to children, http://www.nf.mpg.de/kinderuni/kinderuni_en.html, where Aquamacs was customized for easy Python programming and I added some Org-mode specific stuff while I was at it. Here, we used a wrapper-type "application" (a Python script turned into a Mac-type program by Platypus, http://www.sveinbjorn.org/platypus) that starts an unmodified version of Aquamacs with
EMACS = "/Applications/Aquamacs.app/Contents/MacOS/aquamacs"
os.system("open -a " + EMACS + " --args -l " + el_file + " -eval '(message \"KinderUni - happy coding!\")' &")
where el_file sets up some special menus (with nice and large icons) and settings for python and Org-mode. I might have some time over the next six weeks to polish and release this.
Warm regards,
Stefan
> I'm still figuring out a workflow so please let me know if this makes sense, but I'm picturing something like this:
>
> * I launch my OrgMode.app
>
> * It opens and (via its internal site-lisp magic) loads ~/Dropbox/Org/index.org
>
> * index.org is a file I'll maintain manually that links to my other org files so I can access them using the inter-linking ability in org-mode
>
> * If something like index.org can be automated that would be OK, but I don't mind maintaning it as my meta-org file. Perhaps based on something like I have now in my .emacs:
>
> (setq org-agenda-files (list "~/Dropbox/org/foo.org"
> "~/Dropbox/org/bar.org))
>
>
> -k.
--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213 FAX +49-221-4726-298
Tel.: +49-221-478-5713 Mobile: 0160-93874279
Email: vollmar@nf.mpg.de http://www.nf.mpg.de
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4409 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-07-06 8:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-05 4:19 Org Mode dedicated app on OS X Ken Mankoff
2011-07-05 7:23 ` Stefan Vollmar
2011-07-05 14:48 ` Ken Mankoff
2011-07-05 19:39 ` Rasmus
2011-07-06 8:56 ` Stefan Vollmar
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).