I've started taking advantage of Emac's org-mode with R code snippets. So nifty!
One thing I miss from ESS-mode is the underscore key "_" that produces the assignment operator "<-". Do you know any way of having this functionality within R code blocks in an org document?
A search on stackexchange and the web didn't return very much, or only answers from 10 years ago...
>>> or some keybindings (e.g. for "<-") inside<br></br>>>> an R source code block.<br></br><br></br>This one can be done with<br></br><br></br> (defun dan/org-underscore-command ()<br></br> (interactive)<br></br> (or (org-babel-do-key-sequence-in-edit-buffer "_")<br></br> (org-self-insert-command 1)))<br></br><br></br> (define-key org-mode-map "_" 'dan/org-underscore-command)<br></br><br></br>And another one that you may like is for commenting code:<br></br><br></br> (defun dan/org-comment-dwim (&optional arg)<br></br> (interactive "P")<br></br> (or (org-babel-do-key-sequence-in-edit-buffer "M-;")<br></br> (comment-dwim arg)))<br></br><br></br> (define-key org-mode-map "M-;" 'dan/org-comment-dwim)<br></br><br></br>
When I stopped my weekly routine, I also stopped organizing tasks. Now I have one big file mixed with personal and work tasks, some active and some complete. It’s an intimidating blob of “stuff,” and just looking at it makes me want to run away to a video game instead.
When should I visit my projects file and move things out into their categories? Second, what are these categories?
Rethinking and reorganizing my life - with org-mode:
The more I learn #Emacs, the more I think I should've started way earlier.
I'm using only #OrgMode, to create and manage my digital garden, but I've already learnt a good set of useful commands, my digital garden is automagically converted from Org Mode into HTML with a nice CSS, I've even integrated Japanese furigana and PlantUML!
And I'm sharing back all my current learnings, using the digital garden itself: https://marcoxbresciani.codeberg.page/emacs/orgmode/orgmode.html
Have a nice reading, and give me feedbacks! 🙏🏻
#Irreal highlighted @jbaty blog post on the "gravitational pull of emacs" a cyclic moving away for simplicity's sake and a gradual pull back as personal comforts of customisations coax and inevitable return to #emacs
I've noticed a similar tidal motion back and forth, but instead of simple note-taking apps I flow between Emacs and other simpler #FOSS editors, like #Featherpad or #Notepadplusplus
Ultimately the draw & utility of #OrgMode sucks me back into Emacs and has me nuzzling comfortably back in my custom config.
This is probably a result of trying to walk the tight rope of balance between literally "getting things done" (not the GTD system) and "making life easier" with settings & customising.
I suppose, one day, the customisations might reach a stable state & the use of other editors becomes unnecessary. Balance achieved. Enlightenment.
But you know, in tech, everything moves on eternally so the balance undulates softly over time. Not to mention our lives and needs also shift over time.
So perhaps this do-si-do dance we do, will always be?
#emacs people: Is there an easy way to customise org-capture (and perhaps org-agenda) to just use the same window and leave my window management alone?
I’m knee-deep into stack overflow posts and wasting way too much time here. This is one of my most longstanding annoyances of #orgmode
(This is actually one of the reasons #orgrr does not use org-capture for new notes.)
I wrote a small post on using the rx macro in places where it's not supported, e.g. in Lisp data files.
rx is a macro which takes a special Lisp form and complies it to a regular expressions string.
The post demonstrates how I use #orgmode with noweb expansion to insert rx results in a source file. In this case, I use it to write scoring rules for elfeed-score with more readable regular expressions.
I'd like to use a workflow where each #Mastodon message that gets bookmarked by me is automatically screenshotted to PNG, archived in a local directory and its text content + image descriptions get added to a text file (preferably #orgdown) together with a link to the screenshot and the original message URL.
I've updated my Microsoft Edge notes after working with it for a couple of weeks. If you use Office 365 for work like I do, here's a tip: Maximize (but don't go full screen!) when working with Edge. Read more in the full article linked above.
For Emacs org-mode users, two tips in two new notes: linking to other org-mode headers and plain lists to checklists in org-mode.
Taking my new (to me) ThinkPad 450 out for its first stroll. Using it while waiting for the car to be serviced. #linuxmint, #firefox, #emacs, all working like a charm. Keyboard and touchpad are almost perfect, battery life is super long. Screen is a little dim but hey. For under $100US I'm not complaining. This is exactly why I got it and set it up with linux, etc. Oh, also doing some journaling with #orgmode and it seems to be syncing to my home computer with #syncthing. Just about perfect!
So excited that I was able to write a blog post in #orgmode#emacs and publish it to my #classicpress blog from within orgmode! The new post ain't much to look at, and there's no content to speak of. Just a proof of concept. And it proofed!
So, I think I start to understand why I always fail to use Org-mode, or any other software made for the same goal.
Until now, I wanted to use it to track and plan all my tasks. Including tasks I don't want to do but have to. So, every time I used it, it remind me of all the boring stuff I don't want to do. It result as my brain prefer to avoid using it and be focus on something else.
When I was using Org-mode, I finished by being freeze: I don't do the tasks I don't want to, and because of that, I was feeling that I didn't deserve to do what I wanted to. In the end, I was doing nothing because of that.
And I also tried to use Org-mode during period of time where I have a lot of work to do, where mistake was not possible for me. In these times, I can't experiment new things. I need to rely on thing that I have already used and have proven it worked for me, even if it's less efficient than Org-mode.
So, what to do now ?
I start to use Org-mode to track only, no planing. I mark only the tasks I want to do. Like that, I will be very happy to use it.
When I took the habit to use Org-mode, I will start to time my tasks. It will help me with my inability to represent time in my head.
Then I will start to introduce task I don't want to. Maybe with a counter. If I have more than 3 tasks per week, I have the right to push the rest of them to next week.
And finally, I will maybe introduce planing.
But for each step, I will wait to take some habits.
It always annoys me that both #OrgMode and #Pandoc do not appear to have a 'clean'/plain flag for generating output.
I want 'plain' LaTeX and HTML with no additions or custom elements...no \tightlist in list environments, nor <div> around sections. Just plain unadulterated markup, that is all...