7 ms·
I learned VI before Emacs, and by the time I heard about Org Mode, I had developed a way of using Vim similarly; in a nutshell, I write in a clang file (usually
by pqhwan 11y ago
I learned VI before Emacs, and by the time I heard about Org Mode, I had developed a way of using Vim similarly; in a nutshell, I write in a clang file (usually named control.c), and (mis)use syntax highlighting on things like switch statement, comments, TODOs and code folding to add structure (screenshot: http://imgur.com/kqrEahz http://imgur.com/kqrEahz). I did most of my coding in C in college, got into the habit of writing pseudocode into editors, and ended up with this practice.
For the Org Mode aficionados: I feel that this "thing" meets my needs for the most part. I can create task items, comment them out when I'm done, add notes and TODOs, and fold everything so I can focus on the task I'm working on. What feature do you think I'll benefit the most from, if I decide to switch to Org Mode?
- preek 11y agoThis is a rather neat hack, kudos! You've got the syntax highlighting and collapsing which are two important features for such a system. org-mode is a little more, though. Say, you have lots of todos with schedules and deadlines, how do you find them? Certainly you could write a regexp and put it in a separate buffer. Or use the org-mode Agenda. Say, you want to share and export your file, because it's a meeting minute document. Sure, you could write your own parser, convert the thing to markdown and use pandoc. Or use org-mode Export to everything (HTML, PDF, Slides, ...). Say, you want to track time on your tasks, because it's client work. Sure, you could write a VIM plugin, but then you realize that VIM and async jobs are hard (yeah, Neovim is coming..). Or use org-mode clocks and reports. Or something else completely - like I mentioned I really do enjoy your hack! However, when re-implementing a tool - I'd first figure out why I need a different tool before I spent working on a new one. And believe me, I tried to do what you do in VIM(; Ah, and don't be afraid of Emacs - there is a mode called 'evil-mode' that is just the perfect VIM emulation. I'm using it daily. Therefore switching is a matter of minutes. Except if you have lots of handcrafted VIM plugins to port, that is^^
- ProfDreamer 11y agoThe one thing I would benefit the most from when switching from your approach to Org mode are agenda views: http://orgmode.org/manual/Agenda-Views.html http://orgmode.org/manual/Agenda-Views.html
- jsrjenkins 11y agoOrganizing one's work is a bit different for each person, and since you have done a lot of work in C, certainly vi and clang files are more your /modus operandi/. However for those of us with LISP backgrounds, Emacs is definitely more suitable. What you gain with org-mode is quite a bit: Org-bable which allows you to write outlines with blocks of text that can call external scripts. This is a bit like a Mathematica workbook, with text notes and evaluations, but you can call to Python, Ruby, or whatever language you want. You can export an .org file into many different formats. LaTeX, HTML and OpenOffice format are what I use most often. Note that you can modify the template to export to any custom format you want. What is very useful are the Beamer templates, where you can turn an .org document into a slideshow very easily. This is a killer feature for anyone who has to lecture often and needs a quick way to get his notes on some slides that look quite professional. Org-mode also has an agenda, calendar and even contacts if you want to store them there. You can provide links in your agenda to a specific part of your file, so you can click on the TODO link and go immediately to what needs to be done. This is extremely valuable for a large project and saves a lot of time. There is also org-capture for those moments when you are fixing one file and you need to remind yourself to refactor a function in another file. This helps avoid many bugs especially in a large project where the function definition can be somewhere else. You can also capture any sort of text. When looking up documentation I often capture the web page and put it in a NOTES.org file in a project, especially when it is something obscure that I don't use that often. These notes can also have links/todos, etc. making it very practical. Also since I do email in Emacs [mu4e], I can simply make a TODO from an email with org-capture, and it goes into the agenda. In the agenda I have a link to the original email and to any other file or notes that I add to this task. This is very handy with bug-reports and things of this sort. Also, I can search my agenda files to see if anything like this has happened before, etc. It really helps to be able to do this without having to be online like with many bug-tracking software - which is very helpful when on a commute in the train. These are just a few things that you would gain with org-mode, but really there is no end to the customization you can do. It is all written in plain-text and controlled with elisp. I like the fact that with this one tool [Emacs] I can do so many things, so it is worth the time to know the tool well. It also can expand to do whatever task I need to do. The plain-text format makes it possible to even employ outside tools, such as sed and awk, if I am not inspired in elisp at the moment. To do all the things that I do in Emacs would require learning several different tools each with their own document format and key-bindings and wouldn't even necessarily be adaptable to the task at hand. On the other hand, you do have the obligatory xkcd: https://xkcd.com/1205/ https://xkcd.com/1205/
- mrkgnao 11y agoWhat is your vim setup? The fonts and colors and everything look gorgeous; I'd love to have something like that.
- alphapapa 11y agoThat's a very neat hack you have there, I'd never thought of that. However, this question: > What feature do you think I'll benefit the most from, if I decide to switch to Org Mode? To me, that's like asking, "What feature do you think I'll benefit the most from if I decide to switch from paper to a computer?" What you have there is syntax highlighting and folding, which is a big improvement over simple text editing. But Org is a system for capturing, manipulating, and exporting structured data that happens to be stored in plain-text. It's also a tool for literate programming, literate devops, and reproducible research. It's also a tool for writing documents, books, blogs, etc. It's also a PIM/organizer, time-tracker, habit-tracker... The list goes on and on. Org is basically whatever you want or need it to be. You get out of it what you put into it, and it's with you for the long haul, always becoming more powerful and adaptable. The community is also very friendly. Just check out the mailing list if you need any help.