Page 1 of 3

org-mode

Posted: Sun May 22, 2016 3:17 pm
by machinebacon
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.

Re: org-mode

Posted: Mon May 23, 2016 7:34 am
by wuxmedia
nice vid. answered my question(s) already.

Re: org-mode

Posted: Mon May 23, 2016 12:49 pm
by rhowaldt
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".

Re: org-mode

Posted: Mon May 23, 2016 2:26 pm
by wuxmedia
the video is pretty much that.
"if you can think it, someone's made a mode or key combo for it"

Re: org-mode

Posted: Mon May 23, 2016 2:45 pm
by franksinistra
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.

Re: org-mode

Posted: Mon May 23, 2016 3:04 pm
by slartie
@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

Re: org-mode

Posted: Mon May 23, 2016 4:37 pm
by machinebacon
^ I recommend Memacs

Re: org-mode

Posted: Mon May 23, 2016 4:50 pm
by slartie
^ I never could get on with memacs, but hell it might be the right fit for some people. Good recommendation.

Re: org-mode

Posted: Mon May 23, 2016 5:05 pm
by GekkoP
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.

Re: org-mode

Posted: Mon May 23, 2016 5:15 pm
by slartie
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.

Re: org-mode

Posted: Mon May 23, 2016 7:33 pm
by wuxmedia
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.

Re: org-mode

Posted: Mon May 23, 2016 7:46 pm
by slartie
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.

Re: org-mode

Posted: Mon May 23, 2016 8:02 pm
by GekkoP
^^ 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.

Re: org-mode

Posted: Tue May 24, 2016 1:01 am
by wuxmedia
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. :)

Re: org-mode

Posted: Tue May 24, 2016 2:54 am
by machinebacon
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.

Re: org-mode

Posted: Tue May 24, 2016 7:32 am
by wuxmedia
giving it a shot.

Re: org-mode

Posted: Tue May 24, 2016 10:25 am
by wuxmedia
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?

Re: org-mode

Posted: Tue May 24, 2016 10:55 am
by wuxmedia

Re: org-mode

Posted: Tue May 24, 2016 11:39 am
by wuxmedia
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.

Re: org-mode

Posted: Tue May 24, 2016 12:04 pm
by GekkoP
You can type C-c C-l (Ctrl-c Ctrl-) to insert a link and its description.