This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-28
Channels
- # babashka (48)
- # babashka-sci-dev (7)
- # beginners (123)
- # calva (32)
- # cider (5)
- # clara (20)
- # clj-kondo (3)
- # cljdoc (2)
- # cljs-dev (1)
- # clojure (113)
- # clojure-dev (5)
- # clojure-europe (65)
- # clojure-norway (23)
- # clojure-spec (4)
- # clojure-uk (4)
- # clojurescript (33)
- # cursive (3)
- # datalevin (39)
- # datomic (2)
- # emacs (14)
- # events (1)
- # fulcro (10)
- # graphql (5)
- # humbleui (2)
- # integrant (4)
- # introduce-yourself (3)
- # jobs (1)
- # jobs-discuss (11)
- # kaocha (26)
- # leiningen (6)
- # malli (24)
- # nbb (2)
- # off-topic (69)
- # pathom (77)
- # podcasts-discuss (2)
- # reitit (8)
- # remote-jobs (2)
- # sci (17)
- # scittle (8)
- # squint (1)
- # xtdb (43)
Does anyone know of a way to paste text as a comment?
For example, I want to translate some Java code to Clojure. So I want to paste the java as a comment.
If I just paste the Java code in, Emacs tries to reformat it. But I want it verbatim, but behind ;;
Yeah I do
that will be doing the formatting then. I'm not sure how to do a paste w/o that kicking in, but I suppose you could toggle the minor mode and then comment it out
Just tried it, that works better, thanks!
Would still be useful to have that as a package...
(defun paste-as-comment ()
(interactive)
(let ((beg (point-marker))
(end (save-excursion
(insert " ")
(point-marker))))
(yank-pop)
(comment-region beg end)))
first version 😛whole guacamole, it works!
Hi guys! I try to setup emacs but I don’t understand why ivy
is not activated with this code:
(use-package ivy
:bind (:map ivy-minibuffer-map
("C-j" . ivy-next-line)
("C-k" . ivy-previous-line))
:config
(ivy-mode 1))
When I remove the :bind
, ivy
is activated 😕:bind
or :hook
makes use-package lazy load the package. You have to add :demand t
to always load.
Thanks @UFAP0C8KU for your explanation