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’m currently trying out Joplin:
– Free sync via Dropbox—which is a bit slow. I may eventually switch to Joplin Cloud ($2.40/month).
– Relatively simple UI—which is exactly what I want. Obsidian has many features I don’t need.
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.
Designing #ToolsForThought - one of the long-term things I have been musing about is how to combine the power of the bullet-point outliner with the power of the long-form writing tool. The issue is, both are pretty powerful in a modern setting. Throw something like Capacities together with something like Tana. The interface gets nastily cluttered.
So why don't separate them a bit? Here's what I call a 90/10 solution - it's not perfect, but I think it manages most of the things needed. 1/n
(neat side effect: this gives you a base syntax for literary programming. #orgmode has this entire idea of creating "cells" of code inbetween your other nodes, which can either be evaluated or exported out of the notes as source code files. The same works here.
And programming/plugin/extension-wise, having a new cell type do A New Thing also becomes pretty cleanly defined. Overall, a promising idea I think.
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!
Pre-warning to my followers: I'm going to leave #reddit for good and I'm blogging about the reasons - mostly because reddit management gone crazy (latest: my #firefox isn't working any more for reddit) & also because of https://karl-voit.at/2020/10/23/avoid-web-forums/
One of the features I love in XCode is the sticky lines showing the class/method you've scrolled down in.
I love it so much I'm desperate to also have it in Android Studio, turns out it's coming in the next version! (Koala 2024.1.1)
Guess who's now using the canary release 😄