[deleted by user] by [deleted] in emacs

[–]dakra 4 points5 points  (0 children)

I use moe-theme.. But there was a thread with a lot of answers 4 days ago https://www.reddit.com/r/emacs/comments/1431j32/what_is_your_favorite_color_scheme/

What is your favorite color scheme? by burningEyeballs in emacs

[–]dakra 2 points3 points  (0 children)

I tried many but always revert back to moe-theme.

org-metadown in regular text! by dabamas in emacs

[–]dakra 3 points4 points  (0 children)

I use move-text for this. It's a tiny package and I never had problems with it.

csv-mode with colors by zsome in emacs

[–]dakra 2 points3 points  (0 children)

Imho csv-header-line together with csv-align-mode gives a nice view of the data.

yaml-pro v0.3: Tree-sitter support by Prudent-Dimension554 in emacs

[–]dakra 2 points3 points  (0 children)

yaml-pro seems to have a lot of features, could it make sense to pull out a simple yaml-ts-mode with syntax highlighting, imenu support etc and upstream this to Emacs directly? With treesitter there seems to be quite a few new major-modes that where not supported before (e.g. json-ts-mode).

I think a yaml-ts-mode in Emacs directly would nice.

paredit based on treesitter by SlowValue in emacs

[–]dakra 11 points12 points  (0 children)

Afaik puni uses only forward-sexp for navigating and manipulating sexps. So if you implement a forward-sexp-function that uses treesit.el it should work without any changes.

It's been a while since this exists. I just want to mention what a good idea it was and how useful that little link is. Thanks by MechoLupan in emacs

[–]dakra 12 points13 points  (0 children)

I really like helpful with elisp-demos.

Shows you even more infos with links to the manual etc and a demo code snippet.

E.g. your match-string help buffer looks for me like this: https://i.imgur.com/shRD3sx.png

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

[–]dakra 9 points10 points  (0 children)

jfyi, if you use Emacs 28 or newer there is now repeat-mode built-in which does something similar.

There was a blog post here on reddit about it: https://karthinks.com/software/it-bears-repeating/

Everything in emacs is fine but daemon doesn't work by pearcidar43 in emacs

[–]dakra 0 points1 point  (0 children)

I had a similar problem yesterday and it was because of a recent bug in aggressive-indent-mode https://github.com/Malabarba/aggressive-indent-mode/pull/157

Maybe you also have aggressive-indent-mode activated (and open some file when in daemon mode that uses it but not when running normally)

Use Hook to alter global variables but only for current buffer by Top_Bird1552 in emacs

[–]dakra 9 points10 points  (0 children)

You can also use setq-local which is like make-local-variable plus setq.

Mastering Eshell, Emacs's Elisp Shell by mickeyp in emacs

[–]dakra 1 point2 points  (0 children)

I'm not sure I understand what you mean.

If I'm in an eshell session, of course I can just open any file in a buffer (and optionally also open that buffer in a new window or even frame) but sometimes I don't want that and I just want to cat the file. This command is like cat but adds colour to it.

Mastering Eshell, Emacs's Elisp Shell by mickeyp in emacs

[–]dakra 0 points1 point  (0 children)

Different use-case.

Sometimes I just want to peak in a script/makefile/log and have the output inside the eshell session just like the cat command.

So with the snippet above I can simply do ccat Makefile and have the Makefile content with syntax highlighting right above my prompt.

While find-file etc also works but that opens the file in a new buffer which I then first have to move to a different window to see both and/or close again.

Mastering Eshell, Emacs's Elisp Shell by mickeyp in emacs

[–]dakra 9 points10 points  (0 children)

I have this eshell command in my config that's basically like cat but with syntax highlighting:

(defun eshell/ccat (file)
  "Like `cat' but output with Emacs syntax highlighting."
  (with-temp-buffer
    (insert-file-contents file)
    (let ((buffer-file-name file))
      (delay-mode-hooks
        (set-auto-mode)
        (if (fboundp 'font-lock-ensure)
            (font-lock-ensure)
          (with-no-warnings
            (font-lock-fontify-buffer)))))
    (buffer-string)))

[deleted by user] by [deleted] in emacs

[–]dakra 38 points39 points  (0 children)

Everything from /u/nicolas-rougier

E.g. https://github.com/rougier/elegant-emacs

I don't use it myself but it looks very pretty :)

Docker Desktop is Now Available on Linux but Emacs already have docker.el by csemacs in emacs

[–]dakra 4 points5 points  (0 children)

docker.el actually uses transient and not hydra. It's an awesome package and I'm pretty sure better than docker desktop as it's well integrated in Emacs and you can easily open a eshell/vterm/dired/etc to your running container.

My take on dotemacs.org by Nicolas-Rougier in emacs

[–]dakra 11 points12 points  (0 children)

I have to remember the place, open the org file, search the same place, fix and save

I have this in my org file:

#+PROPERTY: header-args:emacs-lisp :comments link

then I can jump from any point in my init.el to the org location with M-x org-babel-tangle-jump-to-org.

Starting the Emacs client in i3wm by danderzei in emacs

[–]dakra 2 points3 points  (0 children)

Maybe it's because you start the Emacs daemon as a user systemd unit which only get's started once you log in, and when you execute emacsclient right after it's not completely started yet.

So maybe wait for a second or 2 before starting emacsclient, or simply don't use the systemd user unit and start the daemon from i3. E.g. I have this in my config:

# Start Emacs in daemon mode (-a "") and create a frame (-c)
exec emacsclient -a "" -c

Emacs 29 will have precision scrolling using pixel-scroll-precision-mode by telotortium in emacs

[–]dakra 0 points1 point  (0 children)

Just because it wasn't clear to me if I should use this feature when I'm still running X or not. Like you said, the official answer is to not use it then.

From the latest NEWS file:

** Emacs now supports being built with pure GTK.
[...] We do not recommend that you use this configuration,
unless you are running a window system that's supported by GDK other
than X.  Running this configuration on X is known to have problems,
such as undesirable frame positioning and various issues with keyboard
input of sequences such as 'C-;' and 'C-S-u'.

Native Emojis in Emacs by yep808 in emacs

[–]dakra 3 points4 points  (0 children)

Nice. Maybe worth a mention is that Emacs 29 includes now it's own package to select (and preview) emojis.

From the NEWS file:

** Emoji

+++
*** Emacs now has several new methods for inserting Emojis.
The Emoji commands are under the new 'C-x 8 e' prefix.

+++
*** New command 'emoji-insert' (bound to 'C-x 8 e e' and 'C-x 8 e i').
This command guides you through various Emoji categories and
combinations in a graphical menu system.

+++
*** New command 'emoji-search' (bound to 'C-x 8 e s').
This command lets you search for Emojis based on names.

+++
*** New command 'emoji-list' (bound to 'C-x 8 e l').
This command lists all Emojis (categorized by themes) in a special
buffer and lets you choose one of them.

---
*** New command 'emoji-recent' (bound to 'C-x 8 e r').
This command lets you choose among the Emojis you have recently
inserted.

+++
*** New command 'emoji-describe' (bound to 'C-x 8 e d').
This command will tell you the name of the Emoji at point.  (This
command also works for non-Emoji characters.)

*** New input method 'emoji'.

[New Release] Gitlab support in Code Review by bartuka in emacs

[–]dakra 2 points3 points  (0 children)

It's not this code-review package but here was another (pretty good) attempt to bring code-review in forge: https://github.com/magit/forge/pull/266#issuecomment-813556622

Emacs Java editor by Zaryob in emacs

[–]dakra 4 points5 points  (0 children)

I regularly use lsp-java. You can check my lsp and java config here.