reddit / emacs

Fuzzy searching Apple's online docs w/ ivy

xenodium · 2022-02-22 08:27
xenodium · 2022-02-22 08:31
Snippet [at post](https://xenodium.com/emacs-fuzzy-search-apples-online-docs/) and also [config](https://github.com/xenodium/dotsies/blob/main/emacs/features/fe-ivy.el#L192). Needs lexical binding.
bhrgunatha · 2022-02-22 10:03
This is why we emacs. When you have some weird or annoying itch, emacs has the tools to make your own scratcher.
konrad1977 · 2022-02-22 10:07
This is great, thanks! I only want to have two more features now. ;) 1. `word-at-point` for quickly look up something (like protocols) without typing. 2. `def-face`? for custom colors in ivy.
xenodium · 2022-02-22 10:23
>word-at-point for quickly look up something (like protocols) without typing. I wonder if M-n is already enough? Try M-n after invoking function. >def-face? for custom colors in ivy. Can maybe use an existing face to adjust to current theme. Try something like `(propertize (or .title "") 'face 'font-lock-string-face)` or `(propertize (or .title "") 'face 'bold-italic)`
xenodium · 2022-02-22 10:28
ps. counsel-faces is handy to find existing faces.
konrad1977 · 2022-02-22 12:58
I am using Evil and my own keybindings. M-n which command is invoked?
xenodium · 2022-02-22 13:07
ivy-next-history-element, which picks up item at point for me.
7890yuiop · 2022-02-22 13:52
~~I'd use `eww` for the final step, and keep the whole process inside Emacs.~~ Oh Apple; you're just a bit rubbish, aren't you? > This page requires JavaScript. > > Please turn on JavaScript in your browser and refresh the page to view its content.
Bert_is_Silver · 2022-02-22 14:17
How did you get your Firefox to look like that?
m0r1tz_1337 · 2022-02-22 14:25
i swear u can do everything with emacs
xenodium · 2022-02-22 15:28
Cheers - Bold theme by Mozilla.
EndlessApoptosis · 2022-02-23 09:47
When people ask me why I use emacs I'm going to use this response from now on