If like me, you don’t mind how pretty the modeline looks in your emacs,
then you can set it pretty easy.
Why would you want to do this? Well, what happens is that I have a
pretty small screen in my monitor and if I split vertically, I lose some
useful information like the time on a task.
Org-mode is not for everybody, I think. However, I do think that
org-mode is for anybody that is willing to learn enough elisp to shape
the desired workflow.
Have you ever noticed that your on your keyboard the letters j and f
both have a little dent on it. Well, that is not by chance. I will tell
you more, my brazilian keyboard as well as my american keyboard, also
have it.
Why? It is a way for you to find the “rest” position of your hands
without you having to look at it. Is your mind blown? Mine was!
A nice UI feature in emacs in my configuration was having a bit more
control over the mode line (the thing between the buffer and the mini
buffer).
Now that I have been controling my hours with emacs org clock, it is
really nice to have at glance how many hours I have been working. The
issue is that sometimes, my config has a bunch of minor modes and the
mode line has a lot of noise. dminish-mode was a great finding for this!
I realized that sometimes identing the whole buffer might not be the
desired output. That because if the file is on different identation,
your git commit might be hard to follow.
Because of that I studied a bit emacs lisp and came up with similar
idea. On save, indent only the function that you are working on.
(defun le2m/indent-function ()
"indent only function";; (interactive)(delete-trailing-whitespace)
(let ((begin (save-excursion (beginning-of-defun) (point)))
(end (save-excursion (end-of-defun) (point))))
(indent-region begin end nil)))
Another thing you may want/need is to use an alias when connecting
cider. I know that cider can have that set up on your
configuration. You can use .dir-locals.el to set up per project but I
personally prefer to be able to choose when connecting.
/comments ~lucasemmoreira/opinions@lists.sr.ht?Subject=Re: Erlang small QoL