@ankit@emacs.ch
@ankit@emacs.ch avatar

ankit

@ankit@emacs.ch

Always looking for ways to integrate #emacs in life.

#emacs #guile #go #selfhosted

This profile is from a federated server and may be incomplete. Browse more on the original instance.

ankit, to orgmode
@ankit@emacs.ch avatar

I'm building an parser that currently only parses Headings and Scheduled timestamps.

I plan to then use it in a daemon that can watch my Org files and notifies me when its time to do the task.

louis, to emacs
@louis@emacs.ch avatar

Does anyone know what happened to restclient.el? The repo was archived a month ago and I couldn't find any other reference:

https://github.com/pashky/restclient.el

ankit,
@ankit@emacs.ch avatar

@louis Oh boy I use it to document and test all the APIs I work on at work.

ankit, to emacs
@ankit@emacs.ch avatar

I ran into some go code that use build tags. My existing test functions didn't work. To handle build-tags, I defined go-build-tags in .dir-locals.el and used the variable in my functions.

((go-ts-mode . ((go-build-tags . "device,json1"))))

https://git.argp.in/ankit/dotfiles/commit/c5c165c830f9f61c88d366b8a01efb083ea4c97a

ankit, to emacs
@ankit@emacs.ch avatar

Today I learned and practiced using Pikchr. Pikchr is a low-level diagram markup language. This is my second attempt at it and I think it clicked this time.

The program is available is a single function library and a CLI that emits SVG.

https://pikchr.org/

There is obviously an mode for it with preview and org-babel support that works well.

https://github.com/kljohann/pikchr-mode/

ankit,
@ankit@emacs.ch avatar

@holgerschurig I don't have much experience with graphviz but I had similar problem with Mermaid. Pikchr does give you more finer control over layout with the trade-off of complexity.

mms, to random
@mms@emacs.ch avatar

I thought people were joking about systemd doing sudo.

ankit,
@ankit@emacs.ch avatar

@holgerschurig @mms I thought Emacs people would have a different opinion about systemd ๐Ÿคฃ

louis, to emacs
@louis@emacs.ch avatar

I think the whole treesitter train passed me. Having separate ts major modes for every major mode, that are not derivates any more, makes configuration complex.

I'm not sure if the advantages of treesitter merit the complexity that was introduced into Emacs with this.

Some treesitter modes don't support certain features and I have constantly switch modes.

Perhaps I'll remove treesitter completely for now as I don't see any gains for the moment.

What are your experiences? What features do you get out of a specific treesitter mode that are not available in non-treesitter modes?

ankit,
@ankit@emacs.ch avatar

@louis For me, I was able to drop the go-mode from MELPA and use built-in go-ts-mode. It does lack some features like functions for running Tests, etc but I was able to chain together some custom functions very easily using the Treesitter functions. I've also enabled it for Python and haven't faced any problems so far.

For the Lisp modes (Guile and Elisp) I don't feel the need to use Treesitter.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • โ€ข
  • JUstTest
  • tacticalgear
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • everett
  • anitta
  • slotface
  • GTA5RPClips
  • rosin
  • thenastyranch
  • kavyap
  • mdbf
  • Leos
  • modclub
  • osvaldo12
  • Durango
  • khanakhh
  • provamag3
  • cisconetworking
  • ngwrru68w68
  • cubers
  • tester
  • ethstaker
  • megavids
  • normalnudes
  • lostlight
  • All magazines