5 ms·
Just want to throw out there I switched to emacs about 3 months ago after being a long time vimmer, one of the first things I was told was to check out org-mode
by hpoe 6y ago
Just want to throw out there I switched to emacs about 3 months ago after being a long time vimmer, one of the first things I was told was to check out org-mode as it was one of the greatest features of emacs.
I heartily agree, after about a month I now do all my document authoring, PDF, LaTex, HTML, personal wiki notes, all of it goes in .org files. It was low barrier to productivity, and not much more effort to turn org mode into a powerful idea and through organizer as well as documentation.
Beyond that I can author in org mode and then export to tex, to pdf, to html, to markdown to whatever I want using org mode.
If you are a long time vimmer do yourself a favor make the next tech you learn be org-mode in doom-emacs. It is insanely powerful and I will never go back.
- tomerbd 6y agoCan you copy and paste an image into org mode? In many of my document/notes I find that I to copy and paste images into my documents like I take a screenshot and then paste..
- hpoe 6y agoNo, org mode is text based; however what you can do is link to an image, and then when you publish the org mode file as html, or pdf or whatever it will get interpolate and appear as though it had been pasted in. At least that has been my experience a more seasoned orger can correct my ignorance if I do err.
- ycombinete 6y agoOrg mode supports inline images. See more here: https://stackoverflow.com/questions/27129338/inline-images-in-org-mode#27129648 https://stackoverflow.com/questions/27129338/inline-images-i...
- deleted 6y ago[deleted]
- proxygeek 6y agoIf you use it on Windows and have Itfanview installed, here's is how you can do it to copy paste images from clipboard using C-c-s (defun my-org-screenshot () "Take a screenshot into a time stamped unique-named file in the same directory as the org-buffer and insert a link to this file." (interactive) (setq screenshot_dir ".\\images\\") (setq tilde-buffer-filename (replace-regexp-in-string "/" "\\" (buffer-name) t t)) (setq filename (concat (make-temp-name (concat screenshot_dir tilde-buffer-filename ;; attempt to make irfanview approach work "_" (format-time-string "%Y%m%d_%H%M%S_")) ) ".png")) (insert (concat "[[file:" filename "]]")) (org-display-inline-images)) (global-set-key "\C-cs" 'my-org-screenshot)
- boogies 6y agoCould you indent your Lisp by four spaces for formatting? (Like this)
- dan-robertson 6y agoOn HN you only indent two spaces to turn on monospace. Here is the lisp with formatting: (defun my-org-screenshot () "Take a screenshot into a time stamped unique-named file in the same directory as the org-buffer and insert a link to this file." (interactive) (setq screenshot_dir ".\\images\\") (setq tilde-buffer-filename (replace-regexp-in-string "/" "\\" (buffer-name) t t)) (setq filename (concat (make-temp-name (concat screenshot_dir tilde-buffer-filename ;; attempt to make irfanview approach work "_" (format-time-string "%Y%m%d_%H%M%S_"))) ".png")) (insert (concat "[[file:" filename "]]")) (org-display-inline-images))
- vz8 6y agoDid you mean Irfanview? Thanks for the tip. Mostly emacsing via X, but good to know.
- WhatIsDukkha 6y agoThere are plenty of ways to do it - https://github.com/abo-abo/org-download https://github.com/abo-abo/org-download
- tobbe2064 6y agoI just jumped to emacs from vim last week and this was one of the reasons, yes it is possible to display images! I wa salso curios about org-roam but I'm letting it sitt for a while
- zzamboni 6y agoYes, with the org-download module (https://github.com/abo-abo/org-download https://github.com/abo-abo/org-download). I have some additional configuration to paste a screenshot (asking for a filename) using a keybinding. Here is my config: https://github.com/zzamboni/dot-doom/blob/master/doom.org#capturing-images https://github.com/zzamboni/dot-doom/blob/master/doom.org#ca...
- jonnycomputer 6y agoI made the mistake of trying to author a scientific paper in org-mode. Big mistake. I should have just stuck with LaTeX, because what ended up happening is that all my problems and difficulties had to do with me navigating org-mode wrappers around LaTeX, when I could just have dealt with LaTeX directly. I'm sure there will be plenty of people to tell me that I'm wrong.
- danShumway 6y agoI don't think Org-mode's export features are particularly great. I'm finding that when I do want to export something, it's sometimes easier to grab a parser in a language where I'm more comfortable rather than trying to mess around with Lisp and templates. I'm sure if I was better at Lisp my opinion would be different. But if I was writing something and wanted to target LaTeX or pure HTML, I'm not sure I would use Org-mode as the source unless I was writing the converter myself. I think I'd just write in HTML/LaTeX directly. That being said, I would probably still stick all of my notes, references, and TODOs for a scientific paper in Org-mode, and then use LaTeX just for the final paper. The fact that Org-mode can do text references like * TODO Find facts about bees Need more details at file:~/final.tex::And another thing about bees References checklist: - [ ] https://google.com - [X] https://duckduckgo.com - [ ] https://wikipedia.com means that Org-mode ends up being more useful for me as a surrounding 'notebook' around my projects rather than as the core format I'm authoring everything in.
- sqrt17 6y agoWhat pain points would it have saved to write the scientific paper in org-mode? Usually there's a dozen dirty little corners where you want fine-grained control and the org-mode-to-latex converter isn't giving you that by default. I once wrote a short report that I (probably) could also have written in (any equivalent of) Word or LyX/TeXmacs, or some random WISYWIG editor. Very little finetuning of the layout required or necessary, people still liked it better than plaintext (it had some headlines and tables and stuff, but nothing too fancy). So, nice output yes but be careful if what you need is actual LaTeX document preparation.
- 6y ago
- helloSam43 6y agoHi, also big fan of org-mode authoring, but how do you import/modify/use nice latex templates such as invoice or resume? https://www.latextemplates.com/template/invoice https://www.latextemplates.com/template/invoice ?