top | item 29538987

Integrating Emacs with Siri Shortcuts

69 points| danpetrov | 4 years ago |danpetrov.xyz

13 comments

order

kwooding|4 years ago

I was really, really hoping this was about enabling emacs to be scripted via siri shortcuts. (Though this is super useful, too).

Honestly, just being able to set emacs full/split screen via a siri shortcut (and hence, any Shortcut script) would be unbelievably useful for automating pieces of my workflow.

tra3|4 years ago

You should be able to attach an apple script to a Siri shortcut that runs emacsclient:

/opt/homebrew/bin/emacsclient -e '(toggle-frame-maximized)'

tra3|4 years ago

This is why I love using emacs. The extensibility is endless, which is of course both a benefit and a liability sometimes.

I've tinkered with my own customizations of course, but can someone recommend a good methodical approach for learning elisp and emacs internals?

pjm331|4 years ago

I’ve been learning by doing advent of code this year. The ramp up of problem difficulty is nice for general lisp learning, and as I get more comfortable I’ve been stretching out more and more into the emacs specific parts like working with buffers and text properties. Kind of like learning JavaScript first and then getting into the DOM and other browser specific APIs. My main resource has been the emacs lisp manual that ships with emacs.

User23|4 years ago

The official documentation[1] is quite good. An Introduction to Programming in Emacs Lisp[2] is just what it sounds like. It will get you familiar with writing Elisp, using the debugger, and some other basics. At that point, you should be able to navigate the Elisp Reference Manual without too much trouble.

Once you have that foundation, you shouldn't have much trouble scratching whatever itches that arise. The community is thriving so often a web search will return a blog or video explaining how to do exactly what you want. And once you're familiar with it, Elisp is a fairly readable language, so you can learn a lot from looking at the source for other packages to get ideas.

Edit: Sibling comment for Advent of Code is also a solid idea. Arguably Emacs's greatest strength is that it's a fantastic Elisp development environment.

[1] https://www.gnu.org/software/emacs/manual/

[2] https://www.gnu.org/software/emacs/manual/eintr.html

barbierosey|4 years ago

my friend: Emacs or Vim ? me: Emacs or what ?