This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-25
Channels
- # aleph (1)
- # announcements (6)
- # babashka (13)
- # beginners (21)
- # clj-http (25)
- # clj-kondo (23)
- # clojure (17)
- # clojure-europe (49)
- # clojure-nl (1)
- # clojure-norway (8)
- # clojure-uk (4)
- # clojuredesign-podcast (15)
- # clojurescript (6)
- # cursive (18)
- # datomic (22)
- # emacs (29)
- # hyperfiddle (55)
- # introduce-yourself (4)
- # polylith (34)
- # portal (10)
- # releases (1)
- # shadow-cljs (16)
- # spacemacs (2)
Does anyone know an Emacs package that works with Arch's pacman or yay (or other AUR helpers)? I've been searching & installing packages in the terminal, and just realized how nice would it be to be able to do that in Emacs.
oooh, found this: https://github.com/alezost/aurel
Is there a helper around that will paste multi-line clipboard contents, with each line prefixed by ;;
?
Nothing that gpt wouldn't excel at, but I'm curious :)
closest thing I know of is, after yanking your clipboard, select the contents and M-x comment-region
probably worth mentioning, then, M-x uncomment-region
😄
Or just comment-or-uncomment-region , which is a toggle depending on the region comment state
huh! didn’t know about that one! TIL
There's also https://www.emacswiki.org/emacs/BoxQuote.el, and https://www.emacswiki.org/emacs/rebox2.el, and probably many more 🙂
n.b. gc
is not part of evil, but is provided by evil-commentary
or evil-nerd-commenter
I wouldn't joke about hot-button-religious issues like emacs keyboard shortcuts ... </joking>
I'm really thankful for that, because I learnt what C-x C-x
does. (And I thought I was a pretty seasoned Emacs user.)
It will save me many, many keystrokes in the future.
There's also rectangle editing if you want to do something other than comment out some lines in your current programming mode.
C-y ;; yank
C-a ;; move-beginning-of-line
C-x C-x ;; exchange-point-and-mark
C-x r t ;; string-rectangle
; ;; self-insert-command
; ;; self-insert-command
SPC ;; self-insert-command
;; exit-minibuffer
Something I do a lot is paste + complicated and custom sequence of keystrokes to select what I just pasted + M-q
to reflow the text. Now I can just M-y C-x C-x M-q
Yeh, I know of rectangle editing but I use it so rarely that I have to look it up every time
so if you do something like C-s
to search for something, do some editing and want to get back to where you started, you can use C-u C-SPC
(maybe more than once if you've done some things that set the mark)
and there's a global mark ring you can pop (`C-x C-SPC`) which is similar, but across all buffers - so you can go back to where you were editing a few mins ago if you've started chasing a yak to shave 😜
Isn't M-;
the default binding for comment-region
? There's no need to call M-x comment-region
huh! so it is! at least, it’s M-x comment-dwim
which I imagine turns into comment-region
in most contexts we’d want to apply it. cool! I must have only ever run C-h c comment-region RET
in fundamental mode or something 🙂 thanks!!