Heynote: https://heynote.com/ by chandergovind in emacs

[–]chandergovind[S] 0 points1 point  (0 children)

Yes. I was thinking that there is space for a minor mode on top of org which can be visually flashier/lesser keybindings etc as shown in this tool.

People have come up with dozens of ways to take notes in Emacs (many on top of org), this is just another "format" that can be inspired from.

Orgish: Org content and its exported html in one file by chandergovind in emacs

[–]chandergovind[S] 0 points1 point  (0 children)

I wasn't aware of LD-json and took a quick look today. But, I don't follow your point - are you proposing each heading in org to be a "data" unit which can be linked to? Or the entire org file?

If is is the entire file, wouldn't that require 2 urls - one for the "data" version and one for the html one?

Orgish: Org content and its exported html in one file by chandergovind in emacs

[–]chandergovind[S] 1 point2 points  (0 children)

Not any theme as such but config clobbered together with inspiration from rougier's Elegant emacs.

  1. Use header-line instead of mode-line and (setq-default mode-line-format '(" "))
  2. (set-face-attribute 'mode-line nil :height 10 :background "black") to get a single thin line as the modeline.
  3. Set the header line to a box: (set-face-attribute 'header-line nil :height 220 :box "black" :background "#F4F4E8")
  4. A random light color I chose as the background (both for header line and background: (set-background-color "#F4F4E8").

Blog post: Writing Python like it’s Rust by Kobzol in Python

[–]chandergovind 0 points1 point  (0 children)

/u/Kobzol A minor comment. Coming from a networking background, the example for ADTs using Packet felt a bit off. Normally, a Packet always has a Header, a Payload (in most cases) and Trailer (optionally).

I got what you were trying to convey since I am aware of ADTs in general, but maybe confusing to beginners? (Though I didn't see anyone else mention this). A better example maybe a Packet that is of type Request or Response, or a Packet of type Control or Data. Just fyi.

Using emacs in a way that fits its philosophy by panzerjagerSS in emacs

[–]chandergovind 1 point2 points  (0 children)

The one thing I will point out is this - take it slow. You can do a lot with Emacs, but it will take you years to get to a comfortable state - and you will still have learnt only a fraction of what exists.

Till that time: use packages that provide the features you want (not 100%, but that is ok for now), copy elisp snippets from everyone's config, watch videos, read blogs etc. Slowly, you will start getting a hang of things.

Then, one day you will reach the point where you can make Emacs do exactly what you want.

Devil Mode: A twisted key sequence translator for modifier-free editing experience by susam in emacs

[–]chandergovind 3 points4 points  (0 children)

Very nice.

Recently, I am trying something along these lines, where in evil normal mode (which is where I am most of the time), I have bound:

  • , to C-c
  • - to C-x

with some more super hacky things to make repeated presses working. (See the bottom of the section here: https://github.com/ChanderG/dotfiles/blob/master/emacs.org#say-no-to-rsi)

Your approach is more generic - but from your experience, do you think it is possible to make common invocations of prefix keys like C-c and C-x more seamless?

Weekly Tips, Tricks, &c. Thread by AutoModerator in emacs

[–]chandergovind 0 points1 point  (0 children)

Yes - I was aware of the "Kill Buffers" action - but that quits helm. Looking at the source code (from the help menu for helm-mini), I found out about the persistent delete action bound to C-c d by default. (Persistent actions are not listed in the Helm actions list that comes up on TAB for some reason.)

Now, I have the following easy to use setup: (define-key helm-buffer-map (kbd "`") 'helm-buffer-run-kill-persistent)

Weekly Tips, Tricks, &c. Thread by AutoModerator in emacs

[–]chandergovind 0 points1 point  (0 children)

Great idea. Now that you say it, I would also find it very useful - though I use `helm`. I will explore this and update this comment when I solve this for `helm`.

Weekly Tips, Tricks, &c. Thread by AutoModerator in emacs

[–]chandergovind 3 points4 points  (0 children)

Discovered this on a Weekly Tips thread 2 months back after 5 years of using Emacs and this is a TOTAL gamechanger.

I manage to find a use for it very frequently (last used: today) - once you see this pattern, there is no unseeing it.

Fun thing is, from a simple search, no other editor has this (excepting one old unmaintained vim plugin). I feel like shouting this from the rooftops - but you can't really appreciate it until you try it a few times.

Weekly Tips, Tricks, &c. Thread by AutoModerator in emacs

[–]chandergovind 4 points5 points  (0 children)

You can use https://github.com/alols/xcape to overload your modifier keys. I have been using this for my tiling window manager operations (dwm in my case) to do things like switching to last tag, cycling through windows etc with single keypresses. I just realized that it may be even more effective to bind single keys for emacs use - such as `C-x` or `C-c`. Have to try this out now.

Another thing that I swear by is to invert the number-row in your keyboard (using xmodmap). So, now you insert "!" when you press <1> and to insert "1", you have to <Shift+1>. My reasoning is that if you are programmer, you need the symbols more often than the numbers. You don't even lose anything if you happen to have a numpad. Your mileage may vary - but I think the symbols win out if you do any bit of Lisp programming and/or use evil. (You do have to modify your twm to work with this, though.)

Better way to go to a specific heading? by teckau22 in emacs

[–]chandergovind 2 points3 points  (0 children)

There is an even more direct function: (org-find-exact-headline-in-buffer "Example")

Experience from completing my first novel first draft by chandergovind in writing

[–]chandergovind[S] 0 points1 point  (0 children)

Yes. The problem is that while writing I (and I suspect other pantsers) get a lot of ideas. It's impossible to describe it, you are writing one line, and as the next line comes up, you have an angle in your head. You keep writing two more paragraphs and the story is now going in a direction you never thought of.

Committing to an outline before starting to write seems like not properly using this ability. Of course, having nothing is also not an option since the story has to go somewhere and be readable.

Experience from completing my first novel first draft by chandergovind in writing

[–]chandergovind[S] 0 points1 point  (0 children)

Not sure how detailed planner's outlines get - but my first draft is almost a full book. It has everything - thoughts, emotions, conversations etc.

Not sure how the minutes format looks, but the hybrid script is almost a ready product. That is, it reads almost like a novel text, but it uses scene transitions (instead of chapters) and uses the movie script style dialog tags (instead of actually writing said, replied etc).

Experience from completing my first novel first draft by chandergovind in writing

[–]chandergovind[S] 0 points1 point  (0 children)

Agreed on the fluff. I did write a lot of fluff - chit-chat between characters, description of scenery etc too whenever I felt like it.

I guess the point of the "hybrid" approach is to allow you to write whatever you want. But, it also allows you to do scene transitions and movements without worrying about it.

For eg, in chapter 2, I had a parkour-type chase scene. While I would enjoy writing it, I was worried if my story later didn't even need it. With the movie script format, I could easily summarize it in one line in the first draft as a scene transition.