This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-06-14
Channels
- # biff (2)
- # calva (1)
- # clj-kondo (1)
- # clj-otel (34)
- # clojure (49)
- # clojure-europe (44)
- # clojure-nl (2)
- # clojure-norway (21)
- # clojure-sweden (11)
- # clojure-uk (6)
- # clojurescript (7)
- # data-science (3)
- # datahike (34)
- # emacs (17)
- # fulcro (1)
- # gratitude (5)
- # honeysql (1)
- # jobs (11)
- # leiningen (42)
- # lsp (5)
- # nextjournal (3)
- # observability (1)
- # practicalli (2)
- # shadow-cljs (153)
- # solo-full-stack (5)
- # squint (7)
- # xtdb (16)
Displaying the shortcut keys and their corresponding function names below Emacs is very user-friendly. How can I enable it?
Check out suggest-key-bindings
variable, the package in screenshot is https://github.com/tarsius/keycast
If more of a history is required, then https://github.com/lewang/command-log-mode is also very useful. It shows commands in a separate buffer. I found this especially useful when learning or accidentally hitting incorrect key combinations or doing a demo. I've used keycast in my screencasts too, its very nice. It can also show the keys in the tab page and window heading.
(setq package-list
'(paredit ;; or personal preference. parinfer is also good
cider
clojure-mode
nord-theme
async
ob-async
ob-clojurescript
org-babel-eval-in-repl
eval-in-repl))
`nord-theme
from https://gist.github.com/adam-james-v/7a61612ce0649afc78513f54b337d8c9
@U1UQEM078Does the M-x
command support general queries instead of exact queries? For example, I canโt remember cider-insert-last-sexp-in-repl
, can I just input cider insert repl
to match it?
There's the built-in fido-mode
and fido-vertical-mode
: http://xahlee.info/emacs/emacs/emacs_fido_mode.html
Or vertico is also very popular (https://github.com/minad/vertico)
You need to customize completion-styles
variable, it's possible to make it work with almost any completion package, including built-in.
if you want to use spaces to separate matches, you might consider https://github.com/oantolin/orderless
> Thereโs the built-in fido-mode
and fido-vertical-mode
:
Yeah, it worked! There is a restriction, the order needs to be correct.
> if you want to use spaces to separate matches, you might consider https://github.com/oantolin/orderless
It seems to meet the requirements, but I was not successful. I am not familiar with Emacs. ๐ I will take another look when I have the chance.
I use https://github.com/nonsequitur/smex - probably considered old-school by now. Does the right thing, 'set it and forget it' ๐
Probably the easiest way to get orderless working would be to turn off fido, and use it with vertico, copying the vertico and orderless config here: https://github.com/minad/vertico?tab=readme-ov-file#configuration (not that the orderless bit is just after the rest)
> Probably the easiest way to get orderless working would be to turn off fido, and use it with vertico, copying the vertico and orderless config here: https://github.com/minad/vertico?tab=readme-ov-file#configuration (not that the orderless bit is just after the rest) wow, this saved me! ๐ I failed with orderless + icomplete-vertical before ๐