emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
Ahmed Hassan 2020-04-27T19:46:31.159400Z

When I run M-x pcomplete it prompts Invalid function: pcomplete-here on Doom Emacs. What is the problem?

2020-04-27T21:41:01.161500Z

don't have an answer for you but doom emacs discord and maintainer highly recommended

Ahmed Hassan 2020-04-27T21:42:58.163700Z

Thanks, any resources to learn Evil mode? I've never used Vim, but want to give it try.

aisamu 2020-04-27T21:44:34.165100Z

Vim tutorials!

2020-04-28T07:27:43.167500Z

well in any case, i've printed the first cheat sheet out and i think i might try to learn one key a day from it.

aisamu 2020-04-28T12:19:52.168100Z

Yup, it'll take you some time to catch up. That doesn't meant the basics aren't sufficient to be productive, though. You'll increase your productivity with each new command. I didn't try to memorize everything upfront (only that graphical tutorial) - knowing what's out there and learning it when you need it worked just fine (as in "dang I remember something about editing quoted text").

2020-04-28T12:28:52.168300Z

thanks! your point about being aware of the existence of certain things makes a fair bit of sense. the idea that possibly there are only about 30 or so commands that could give a fair bit of benefit is quite motivating. i just have no idea what those are, but i suppose it's likely that some if not all of them are on the cheat sheet. it wasn't until some years back that i became aware of the "composing" of commands aspect so hopefully i'll get to experience that in-depth soon.

Ahmed Hassan 2020-04-28T12:33:53.168600Z

@sogaiu did you print this cheat sheet: https://vim.rtorr.com/

2020-04-28T12:38:54.169200Z

no, i did this one: http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html or rather just the first page. i think the graphical aspect of it somehow makes the memorization aspect better in my case. i find being able to see the whole picture on one page to be helpful, but also the color and layout not being so uniform. it's like with code, i try to get my functions to fit on one page so i can leverage my visual system to help hold the whole thing in my mind at once. long lists don't work as well for me, but thanks for the link, i will take a look anyway. may be i will at least remember some things ๐Ÿ™‚ the thematic grouping is nice.

tvirolai 2020-04-28T12:42:32.170200Z

You can set the Cider-specific keybindings as Evil local keys like this:

(defun clojure-mappings ()
  (evil-local-set-key 'normal (kbd "ยฐ") 'cider-eval-buffer)
  (evil-local-set-key 'normal (kbd "M-ยง") 'cider-eval-buffer)
  (evil-local-set-key 'normal (kbd "ยง") 'cider-eval-defun-at-point)
  (evil-local-set-key 'normal (kbd "ร–") 'cider-find-var)
  (evil-local-set-key 'normal (kbd "q") 'cider-popup-buffer-quit)
  (evil-local-set-key 'normal (kbd "K") 'cider-doc))

(add-hook 'clojure-mode-hook #'clojure-mappings)

2020-04-28T12:45:43.170500Z

btw, i saw "efficient editing with vim" recommended -- didn't seem to be in its original location, but http://archive.org had it: https://web.archive.org/web/20090123231123/http://jmcpherson.org/editing.html this article has grouped commands with explanations and examples. haven't finished it yet, but i'm finding it helpful.

aisamu 2020-04-28T13:07:47.171Z

This one's also pretty useful https://stackoverflow.com/a/1220118

โค๏ธ 2
2020-04-28T13:48:28.171300Z

thanks, that looks good -- i've only skimmed so far, but am inclined to go through it in detail. loved this bit at the end: > All of what I've described here should work on any old copy of vi from 20 or 30 years ago.

๐Ÿ‘ 1
practicalli-john 2020-04-28T15:57:57.171900Z

@ahmed1hsn I really started picking up Vim quickly when I learnt the Vi language constructs. Then almost everything is a combination of verbs, modifiers and object https://practicalli.github.io/spacemacs/spacemacs-basics/vim-style/speaking-evil.html

aisamu 2020-04-28T19:00:20.173200Z

Essential! I use Lispy, but the final decision to switch to emacs was made after watching someone using paredit proficiently

practicalli-john 2020-04-28T20:32:40.173400Z

Smartparens (the newer version of paredit) in global strict mode is essential to my Clojure workflow. Smartparens is also useful for other languages too. I didnt get on with lispy or parinfer as they change things unexpectedly on me. I like to be in control of the changes to the structure. As I use Evil with Emacs, then I also use evil-cleverparens so vim actions respect the structure.

2020-04-29T06:23:39.173800Z

@jr0cket thanks for sharing "learning evil by speaking vim" -- laughed a bit at the title, but i suppose this is familiar humor for things having to do with evil-mode ๐Ÿ™‚

๐Ÿ˜ 1
aisamu 2020-04-27T21:46:40.165200Z

I remember using this one: http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html