VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
Want To Rewrite Your Configs In Org-Mode? It's Easy! DistroTube

Want To Rewrite Your Configs In Org-Mode? It's Easy! DistroTube

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Want To Rewrite Your Configs In Org-Mode? It's Easy! DistroTube One of the killer features of Emacs is Org-Mode, which is a kind of markdown that makes creating outlines, tables, source code blocks, and tables of content really easy. Often, when people discover Org-Mode, they start wanting to rewrite all of their configs as literate configs in Org. ERRATA: I mentioned in the video that this would work on any config file written in an actual programming language. That 's not actually the case. Tangle will work on anything, so it doesn't have to be a programming language, since we are not really evaluating the code with this. We are just writing what's in the SRC blocks to the file we specify. NOTE: I did all of this on a live stream earlier today but the stream had some buffering issues. I thought this topic was too important not to go back and re-record. I have removed the earlier live stream. - https://gitlab.com/dwt1/dotfiles/-/tree/master/.xmonad - DT's README.org - https://www.gnu.org/software/emacs/ - GNU Emacs - https://github.com/hlissner/doom-emacs - Doom Emacs - https://orgmode.org/ - Org Mode Documentation
Date: 2022-03-30

Comments and reviews: 10


Thanks, you have shown peopel the light in Emacs.
This is a great way of document your config files, and that without lots and lots of comments in the code.
You could also generate HTML, PFD, LaTeX, LibreOffice and plain text files from the Org-mpde too, so it get even easier to read for someone that want to have a look at your code.
Would also recommend that the links get properly converted into named linkes, just put [] around the link. There are also a shortcut to make a text with a link into a proper link.
But, thanks for showing the magic of Emacs. And as usual, I learn some stuff from looking at your videos about Emacs. And I started to use it back about 1985.

reply

2 minutes before he gets to it.... Sorry this is 2015, most people don't have time for this. That is why 96.3% of people watched your video and didn't bother to like or unlike it.
You have a great voice, your nice to listen to, we all want to have a complete understanding. BUT start with the meat then explain it. Your video should be, This is Org mode in doom emacs, Her is a dot file. This is how you do it. THEN go and explain that you use doom and why -i use doom because It gives me Vi/VIM key controls and has a lot of customization I like. Then explain what org mode is and why and give more examples of how it works.

reply

Long time markdown user, but this is totally a reason to learn org-mode. You could definitely do this with a Pandoc filter for Markdown as well, and I might just try that, but whatever markup language, it's so cool you can do this, and it'll be so helpful to clean up my configs.
reply

I love this idea and want to rewrite my dotfiles in org mode, but for some files like bspwmrc which is a shell file that requires executable permissions, tangle removes the permissions. Is there a way to make the tangle output with the executable permission set?
reply

Org mode is smart enough to wrap code block delimiters around selected text. Mark the block you want, then press -C-c ,- and that will give you a nice menu. hit -s- to wrap the selected text in a source code block. I believe that -
reply

Excellent. Thanks for this illustration. I'm looking to rewrite and generate my .spacemacs this way.
f e d opens up the dotfile .spacemacs. How can I make it open the spacemacs.org instead?

reply

You might consider using the expand-region package -melpa- which facilitates selection. Besides legacy emacs includes mark-whole-buffer, which I've bound to C-a -naturally!-.
reply

One thing kinda annoying me is, if you move to 5:28, you will see even you've wrapped the code in source code block, it won't highlight them until you move to -#+BEGIN_SRC-.
reply

I needed this! Thanks. I'm starting to rewrite my spacemacs config files this way. Read a few reddit posts and blogs, but videos are much better for this type of content.
reply

I support your videos about emacs, but you have to say the differences between emacs and doom emacs. Statements like -Press Y to yank this- or -
reply
Add a review, comment






Other channel videos