Post Awr3UiaeGiaSyk8OES by crandel@fosstodon.org
(DIR) More posts by crandel@fosstodon.org
(DIR) Post #Awr039AxWxT3ShHPNY by farcaller@hdev.im
2025-08-05T08:24:51Z
0 likes, 0 repeats
My #emacs progress insofar.It looks ok. It mostly feels ok. M-x isn't exactly ergonomic in APTv3 layout, so I might be remapping more things (my keeb extras are highly Vim-focused still).Org mode is good. It is functioning better than Vim’s (which is expected). Vertico and Consult are ok. I am very used to Vim’s telescope, but I'm slowly getting used to Consult’s way of things. It's ok, and there are even some extra niceties in how ripgrep integrates.I'm still not sure how to fzf in the current directory. M-x project-find-file seems like the closest match, but it doesn't do file previews.The largest gripe so far is LSP. TypeScript was "mostly" easy: I only had to lsp-install-server for it to bundle some node bs deep into the config dir and I was *very* lucky to have a system-wide Node.js (usually all that goes into devenvs for me). The LSP mostly works (mostly, as in, the LSP actions are somehow widely unpredictable). Rust, though...Fucks sake. Why is it always Rust?..My dev setup is relatively simple. I only use devenvs, I only pull language dependencies from there (which is, from Nix). It works ok with VSCode (with direnv hacks for the backend server), it works great with Vim spawned straight from the directory with correct paths.Emacs? I have no idea what emacs is getting wrong. The LSP starts up, it connects to rust-analyzer, and then... silence. I'm sure I just need to find some debug logs that will probably tell me rustc isn't on the path, and then I'll need to find a way to inject the current directory's environment into emacs too and then...Those client-server editors suck, don't they?At least I have easy times writing more notes into my Org files!
(DIR) Post #Awr1iHj4kHxbo6PwGW by crandel@fosstodon.org
2025-08-05T08:43:29Z
0 likes, 0 repeats
@farcaller Nix always has some issues with $PATHhttps://www.emacswiki.org/emacs/ExecPath
(DIR) Post #Awr1osVktNKHdEKZmq by tusharhero@mathstodon.xyz
2025-08-05T08:44:41Z
0 likes, 1 repeats
@farcaller just envrc-mode for direnv.
(DIR) Post #Awr1saUHqUoUtHPeQi by farcaller@hdev.im
2025-08-05T08:45:23Z
0 likes, 0 repeats
@crandel I found that one (I actually use it to add emacs-specific binaries into its scope). My problem is that I need to have that effectively per-project.And yeah, that's a feature of Nix. Arguably a good feature. You don’t have random tooling versions scattered around and they are pinned to correct versions within the projects’ directories.
(DIR) Post #Awr1zqRguc7SPXevrM by farcaller@hdev.im
2025-08-05T08:46:42Z
0 likes, 0 repeats
@tusharhero I tired it and it didn’t...> lsp-mode users might want to use lsp-deferred rather than lsp, so that path modifications are available when the sub-process is launched.ffs...thanks.
(DIR) Post #Awr29ZkfpmazX2B6fI by tusharhero@mathstodon.xyz
2025-08-05T08:48:27Z
0 likes, 1 repeats
@farcaller https://codeberg.org/tusharhero/ecfpaw/src/branch/master/config.org#headline-116
(DIR) Post #Awr3UiaeGiaSyk8OES by crandel@fosstodon.org
2025-08-05T09:03:27Z
0 likes, 0 repeats
@farcaller You can always have project local variables using directory variableshttps://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html
(DIR) Post #Awr3cpMWyPAUIcOiYq by farcaller@hdev.im
2025-08-05T09:04:57Z
0 likes, 0 repeats
@crandel apparently it all was just because I didn’t use lsp-deferred, so it never picked up the direnv changes.But yeah, I saw those. Seemed like a huge hassle to set up in every project by hand.
(DIR) Post #Awr3dkweskw2tAjsHo by mousebot@todon.nl
2025-08-05T09:05:04Z
0 likes, 0 repeats
@farcaller poss of interest https://github.com/bling/fzf.el (i don't really use it so can't be much help)
(DIR) Post #Awr3mnhU0X8I2YxB1E by farcaller@hdev.im
2025-08-05T09:06:45Z
0 likes, 0 repeats
@mousebot I’ve seen it! It doesn’t do previews, does it? My common use case in vim/telescope is to browse an unfamiliar source tree guessing file names and quickly previewing what's inside.
(DIR) Post #Awr4Gm5UZIKRj4TaOe by mousebot@todon.nl
2025-08-05T09:12:08Z
0 likes, 1 repeats
@farcaller help is your friend:"Signature(fzf &optional WITH-PREVIEW)...With optional prefix WITH-PREVIEW the currently selected filecontent or attribute is shown using the preview commandidentified by the fzf/args-for-preview user-option. By defaultthat shows the file content with cat, but that can be customizedto use other mechanisms.[a prefix = C-u before you M-x fzf]but also, and again i don't use this feature, consult offers previews for many/all its commands, so you can find files with preview that way.
(DIR) Post #Awr4MYOgNkOf0GCy0m by farcaller@hdev.im
2025-08-05T09:13:13Z
0 likes, 0 repeats
@mousebot >_(\I am so not used to built-in help being more detailed than readme files...
(DIR) Post #AwrLWUgAl52daZiMN6 by farcaller@hdev.im
2025-08-05T12:25:27Z
0 likes, 0 repeats
@mousebot I looked more into consult. Am I missing something or consult-fd doesn't give you a preview?
(DIR) Post #AwrPb71eWqJHUeDfHc by mousebot@todon.nl
2025-08-05T13:11:07Z
0 likes, 0 repeats
@farcaller as i said, i don't use previews, so i'm not sure which do and don't...
(DIR) Post #AwrPdgeT2ipiZ4bPMG by farcaller@hdev.im
2025-08-05T13:11:37Z
0 likes, 0 repeats
@mousebot ah right, sorry! I misread that toot of yours.
(DIR) Post #Awtsy9CJuB4tsRStM0 by bbbscarter@mastodon.gamedev.place
2025-08-06T17:49:35Z
0 likes, 0 repeats
@farcaller @mousebot I think you can make consult-fd have a preview using the live preview settings. https://elpa.gnu.org/packages/doc/consult.html#Live-previews