This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-07
Channels
- # announcements (20)
- # babashka (25)
- # beginners (48)
- # biff (26)
- # calva (5)
- # cider (3)
- # clara (7)
- # clerk (7)
- # clj-kondo (61)
- # cljdoc (3)
- # clojure (6)
- # clojure-austin (1)
- # clojure-conj (8)
- # clojure-europe (58)
- # clojure-nl (1)
- # clojure-norway (4)
- # clojure-poland (1)
- # clojure-uk (9)
- # cursive (2)
- # emacs (11)
- # fulcro (8)
- # graphql (14)
- # gratitude (6)
- # humbleui (10)
- # hyperfiddle (17)
- # integrant (15)
- # introduce-yourself (1)
- # leiningen (5)
- # malli (13)
- # meander (21)
- # nbb (11)
- # off-topic (15)
- # pedestal (15)
- # polylith (15)
- # quil (28)
- # rdf (2)
- # reitit (3)
- # releases (6)
- # sci (21)
- # shadow-cljs (38)
- # spacemacs (3)
- # xtdb (6)
Any recommendations for linting / formatting of Emacs lisp (`*.el*`) files? The main focus will be to check Emacs configuration files, some of which may contain function definitions, etc. Bonus points if there GitHub Actions that providing lint / format checks so I can include a GitHub workflow to check changes as they are published. Thank you.
I configured https://github.com/emacs-lsp/lsp-mode/blob/master/.github/workflows/lint.yml some years ago and I find it very complete, it has checks for lint, compilation, package-lint and even a smart indentation check, not sure there is a better way to do that yet
https://github.com/marketplace/actions/set-up-eask github action and https://emacs-eask.github.io/ look very interesting, thanks I may also give https://github.com/marketplace/actions/emacs-lisp-check a try, for comparison.
yeah, eask was created one year ago and it really works well compared with Cask which used to be really flaky
if you want a more recent .el project, take a look at https://github.com/ericdallo/jet.el/blob/master/.github/workflows/test.yml
Good afternoon!
Using Emacs Lisp, how would you escape a string so that it can be used in a shell command? I'm calling a CLI that looks something like this:
./cli --title MY_TITLE
Currently, my code breaks when MY_TITLE
contains "
. The following works (using https://github.com/magnars/s.el), but i (A) wonder if some form of shell-escape function is provided in Emacs, and (B), I'm not sure whether there are weird corner cases I haven't thought about.
Thanks!
(require 's)
(message
(s-replace-all '(("\"" . "\\\""))
"string with \"quotations\" in it"))
;; I see
;;
;; "string with \\\"quotations\\\" in it"
;;
;; in the *Messages* buffer.
unless you require to run it in a shell you're better off using a more structured API like call-process
, which takes the arguments as positional args, not a single string