Fork me on GitHub
#emacs
<
2017-12-07
>
andrea.crotti10:12:10

@ghsgd2 it's not saying it's not valid

andrea.crotti10:12:21

just that the algorithm used is considered insecure

andrea.crotti10:12:45

don't see it on mine (or I already accepted that some time ago)

New To Clojure10:12:26

@andrea.crotti It stopped asking for confirmation today after accepting it. Let's Encrypt is well-known and often used so thought it has proper algorithms. Thank you!

andrea.crotti10:12:43

yeah sure I also use it

New To Clojure11:12:27

Have

(deftest foo-test
(testing ...)
(testing ...))
How to run specific (testing...) test case in CIDER?

Shantanu Kumar11:12:05

Hi, I have trouble adding an Elisp function (which used to worked with older Emacs versions) to newer Emacs:

;; C-M-space should remove multiple whitespace lines into a single blank
;; character
(defun multi-line-just-one-space (&optional n)
  "Multi-line version of just-one-space: Delete all
  spaces, tabs and newlines around point,
  leaving one space (or N spaces)."
  (interactive "*p")
  (let ((orig-pos (point)))
    (skip-chars-backward " \t\n")
    (constrain-to-field nil orig-pos)
    (dotimes (i (or n 1))
      (if (= (following-char) ?\s)
    (forward-char 1)
  (insert ?\s)))
    (delete-region
     (point)
     (progn
       (skip-chars-forward " \t\n")
       (constrain-to-field nil orig-pos t)))))
(global-set-key (kbd "C-M-SPC") 'multi-line-just-one-space)

Shantanu Kumar11:12:57

Can anybody suggest changes to make it work? I have tried (global-set-key (kbd "C-M-SPC") (lambda () (interactive) (multi-line-just-one-space))) to no avail

New To Clojure11:12:23

What C-h k shows for C-M-SPC key presses at your computer?

Shantanu Kumar12:12:40

@ghsgd2 It says the following:

C-M-SPC runs the command multi-line-just-one-space (found in
global-map), which is an interactive Lisp function in
'~/projects/checkout/dotemacs/init-user.el'.

It is bound to C-M-SPC.

(multi-line-just-one-space &optional N)

Multi-line version of just-one-space: Delete all
  spaces, tabs and newlines around point,
  leaving one space (or N spaces).

Shantanu Kumar12:12:03

Oh my! I restarted Emacs and it’s working. Whereas It gave an error message earlier after I just evaled the init-user.el buffer

New To Clojure12:12:08

I have 2 cursors in Emacs after M-x cljr-extract-function. How to revert back to 1 cursor?

benedek14:12:03

that was multiple cursors kicking in

benedek14:12:32

there is a config option to opt out of multiple cursors

benedek14:12:29

although you might just love it :) it is a separate package. you can work magic with it

ag19:12:38

does anyone know how to get fully-qualified name of clojure symbol-at-point?

ag19:12:37

like cider-symbol-at-point but fully qualified

solf22:12:48

@ag Something like this?

(defun cider-fully-qualified-symbol-at-point (args)
  (interactive "P")
  (message (cider-interactive-eval (concat "`(" (cider-symbol-at-point t) ")") )))

solf22:12:29

basically I call cider-symbol-at-point, then wrap that in "`()", then send to the repl for evaluation

ag22:12:33

that worked! Thanks @dromar56