org-mode

Forum rules
Share your brain ;)
machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

org-mode

Unread post by machinebacon » Sun May 22, 2016 3:17 pm

org-mode is "an Emacs Mode for Notes, Planning, and Authoring". It can actually solve hundreds of problems, as also mentioned in http://www.linuxbbq.org/bbs/viewtopic.php?f=7&t=2552

A nice video on org-mode basics:
https://www.youtube.com/watch?v=SzA2YODtgK4

The manual:
http://orgmode.org/org.html

A quick guide:
http://orgmode.org/guide/

This thread is for questions like "can I do ... in org-mode, and if yes, how?"
If you want to share your workflow, please do so.
..gnutella..

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Mon May 23, 2016 7:34 am

nice vid. answered my question(s) already.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: org-mode

Unread post by rhowaldt » Mon May 23, 2016 12:49 pm

the more i read, the more i get the feeling that the question "can i do ... in org-mode" should probably just be answered "yes".
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Mon May 23, 2016 2:26 pm

the video is pretty much that.
"if you can think it, someone's made a mode or key combo for it"
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
franksinistra
Ivana Fukalot
Posts: 1093
Joined: Mon Jan 27, 2014 2:03 am
Location: 印尼国

Re: org-mode

Unread post by franksinistra » Mon May 23, 2016 2:45 pm

Can i haz code in obscure language and have emacs org-mode highlights it as would $POPULAR_IDE ? and formats/aligns the spacing as well?

Yes you can.
rice no more.

User avatar
slartie
Grump
Posts: 416
Joined: Tue Jun 18, 2013 12:35 pm
Location: Denmark
Contact:

Re: org-mode

Unread post by slartie » Mon May 23, 2016 3:04 pm

@rho ... if the answer isn't "yes", it most likely will be soon.

I use it for TODO lists, with a separate archive. Everything is tagged, date stamped and associated with a project. That project can be tagged :writing:, :writing:blog:, :writing:snippets:, :writing:research:, :school:, :school:history:, :school:maths:, and so on. Whenever I finish a TODO item, I archive it with tags intact, and it will usually have extra meta data, to make the archive easier to search. Everything is done in templates, so as to not having to repeat myself over and over. I do the same thing with coding. Snippets of code are tagged with meta data to make them easy to pull using helm - be it C, Ruby, C++, or whatever.

I use it as a calendar with doctors or dentists appointments, anniversaries, birthdays, etc.

I use org-mode as people would use things like MS OneNote, EverNote or any of the other note taking applications. I use it for saving links to articles I find interesting, or I have org-mode pull the entire article from a link and store that in its own heading for safe keeping. That one is still a work in progress. I use Elfeed to read RSS, and pull the article into org-mode if it's something I want to save for later.

Some things are from emacs in general, or from emacs applications, but everything touches on org-mode at some point. Because my memory is so fucking terrible, I'm currently working on being able to: a) use shazam-like application to figure out what I'm listening to on a music stream b) put the artist name and song title into an org file c) find and append a spotify/soundcloud link or alternatively a youtube link of the song to the org file. That way, whenever I hear a cool song, I can "save it" with a hotkey and come back and listen to it again later.

That's just some of the things I use org-mode for.

Elfeed: https://github.com/skeeto/elfeed
... Gekko already told you about elfeed as well: http://linuxbbq.org/bbs/viewtopic.php?p=27333#p27333
Last edited by slartie on Mon May 23, 2016 3:16 pm, edited 2 times in total.
Reason: Adding links to stuff mentioned is helpful!

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: org-mode

Unread post by machinebacon » Mon May 23, 2016 4:37 pm

^ I recommend Memacs
..gnutella..

User avatar
slartie
Grump
Posts: 416
Joined: Tue Jun 18, 2013 12:35 pm
Location: Denmark
Contact:

Re: org-mode

Unread post by slartie » Mon May 23, 2016 4:50 pm

^ I never could get on with memacs, but hell it might be the right fit for some people. Good recommendation.

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5877
Joined: Tue Sep 03, 2013 7:05 am

Re: org-mode

Unread post by GekkoP » Mon May 23, 2016 5:05 pm

Not that I see the real advantages of this, but just to get an idea of the power of this little thingy called org-mode. You can write your Emacs init file in org:
Just put this in your init.el or .emacs:

Code: Select all

(require 'org)
(org-babel-load-file
 (expand-file-name "settings.org"
                   user-emacs-directory))
And then hack away in your settings.org:

Code: Select all

* Turn off menu bar
#+BEGIN_SRC emacs-lisp
(menu-bar-mode -1)
#+END_SRC
Many go this way looking for literate programming. I am too old school for this and prefer my regular elisp. But yeah, you get the idea.

User avatar
slartie
Grump
Posts: 416
Joined: Tue Jun 18, 2013 12:35 pm
Location: Denmark
Contact:

Re: org-mode

Unread post by slartie » Mon May 23, 2016 5:15 pm

As mentioned in the video, literate programming is great for learning, but as an everyday emacs user, I would echo @gekko in that it doesn't feel all too advantageous. I guess having a descriptive headline rather than just a function name is neat, but if you're immersed in emacs daily you know the functions anyway.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Mon May 23, 2016 7:33 pm

well I downloaded the emacs.
got to get used to the ole wacky key chords now.
Evil mode might be handy, although bash readline defaulting to emacs might be enough of a gateway.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
slartie
Grump
Posts: 416
Joined: Tue Jun 18, 2013 12:35 pm
Location: Denmark
Contact:

Re: org-mode

Unread post by slartie » Mon May 23, 2016 7:46 pm

Very early on, I used evil mode, but I wound up removing it again fairly quickly. The problem is that you end up with a mix of keyboard shortcuts that, in my experience at least, do more harm than good. Once you get the emacs C-x M-x convention under your skin, they do make a lot of sense. If you also mix in a bunch of single letter out-of-nowhere shortcuts, muscle memory sort of falls apart. Again, this was my experience. Mileage varies and all that.

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5877
Joined: Tue Sep 03, 2013 7:05 am

Re: org-mode

Unread post by GekkoP » Mon May 23, 2016 8:02 pm

^^ If you want my advice: stick with Emacs default and get yourself familiar with org-mode. Go easy on the customization, at first. Plenty of time for the marvel later.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Tue May 24, 2016 1:01 am

I know what you mean.
I just don't want to be driving a car (emacs) into work, then driving a lorry (vim) all day.
Although Rusty does ok. :)
"Seek, and Ye shall find"
"Github | Chooons | Site"

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: org-mode

Unread post by machinebacon » Tue May 24, 2016 2:54 am

The "advanced" keybinding things (whatever they are) are secondary when you are using org-mode only. If you have the GTK or Lucid version (but even the CLI version), there's F10 for the pop-down menu and you can click to get the more advanced things you don't remember.

Generally, org-mode has the prefix C-c, so if you just start typing in a document.org file, you actually only need to remember the few org-mode commands (depending on your needs), everything else is in the manual which I would recommend to store on the computer and open it in the background.

There's also no real need to create a big .emacs file, I'd only put the stuff there that controls the header (tags, options) for your org-files.

Use evil mode if you feel comfortable with it (I don't), there's no right and wrong way, especially if you really only work with the very basic things like cut/yank/visit file/save and quit. Also good remember how to search (C-s) inside of a document, yeh.
OTOH, these are not really hard to memorise. Give yourself 3 days and you're set.
..gnutella..

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Tue May 24, 2016 7:32 am

giving it a shot.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Tue May 24, 2016 10:25 am

OK well, it's a bit like swimming with my clothes on. but the info here:
http://linuxbbq.org/bbs/viewtopic.php?f ... t=0#p54769

has helped it make a bit of sense. whacky key binds aren't all that bad, holding down ctrl- 'c' then 't' is fine, always thought it was c-c *off* c-t
might end up giving them F keys or something.

Might make more sense to have individual contact files, with notes, reffed to the ticket?
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Tue May 24, 2016 10:55 am

"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: org-mode

Unread post by wuxmedia » Tue May 24, 2016 11:39 am

So i'm doing this, as a link, I mean it works I'm not going to have a million clients.

* TODO Transfer Domains for Jimbob: file:~/orgy/##contacts.org##::Jimbob back on 6th June

Is there a way for that to be inline, surrounded by [[link:]linktext] IIRC?
so - subheadings, cool.

** TODO Get both IPS tags changed - TUCOWS-CA. website1.co.uk website.co.uk
** TODO Create zone file for them.
** TODO make sure if there is email or not.
** TODO Migrate to blade

emails have become a complete mess, so this is really needed - just to store the creds with the customer.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5877
Joined: Tue Sep 03, 2013 7:05 am

Re: org-mode

Unread post by GekkoP » Tue May 24, 2016 12:04 pm

You can type C-c C-l (Ctrl-c Ctrl-) to insert a link and its description.

Post Reply