This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-13
Channels
- # beginners (36)
- # boot (1)
- # cider (4)
- # cljsrn (2)
- # clojure (137)
- # clojure-brasil (3)
- # clojure-czech (3)
- # clojure-italy (17)
- # clojure-nl (8)
- # clojure-spec (7)
- # clojure-uk (153)
- # clojurescript (84)
- # data-science (2)
- # datascript (13)
- # datomic (30)
- # editors (64)
- # emacs (22)
- # events (6)
- # figwheel (26)
- # fulcro (7)
- # hoplon (5)
- # jobs (5)
- # jobs-discuss (57)
- # keechma (3)
- # leiningen (4)
- # luminus (1)
- # midje (2)
- # off-topic (26)
- # portkey (18)
- # re-frame (4)
- # reagent (10)
- # ring-swagger (3)
- # shadow-cljs (135)
- # spacemacs (5)
- # sql (14)
- # tools-deps (125)
Say I (ido-read-directory-name ())
, and am presented with a choice. How to open that choice directly, instead of having to press RET
RET
? (one RET for the choice, another for the .
)
and how do you do it if the directory contains more directories? (genuinely curious - we might have different configurations)
Let's say you're in $HOME and want to go to $HOME/folderA, who itself has other directories
basically RET
or C-m
tells ido to continue doing his autocomplete thingy (in this case showing you the subdirectories), C-j
instead is a "use what I typed" command, you could type 'folderB' (which doesn't exist), do C-j
and ido will use it anyway
That's pretty close to what I'm seeking! But instead of TAB I'd rather take the first already-selected option
i.e.: I want a new shortcut (like S-RET
) to mean "with this half-typed input, choose the first option, and open it directly instead of showing me its subdirectoties"
I'm not sure how to do it. I figured
(defun ido-complete-and-select-text ()
(interactive)
(ido-complete)
(ido-select-text)
)
was enough, since those are the commands called by TAB
and C-j
, but for some reason it doesn't workin any case TAB can sometimes ask you for a choice (`possible completions are: ...`), so it's not equivalent to picking the first displayed option
C-j
is for another use-case, where you don't want to use ido autocomplete but just submit whatever you typed in the minibuffer
hello fellow Emacsers, should I be able to do M-n/ M-p
in Clojure when completing with company-mode?
because I was never able to do but now a colleague mentioned she can do it in the REPL but not in the actual .clj buffer
Hi @U0524T275 Try C-h k
followed by M-n
or M-p
in each of those buffers to see which functions are run
You may need to have the company-mode selection open to see which function is run in that particular state
yeah doesn't let me do that once I'm in company mode expansion time already
I have those lines in my conf: https://github.com/mpenet/emax/blob/master/elisp/modes.el prolly cause of that
so I wonder if it should just work and I have something enabled that breaks it