This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-04
Channels
- # announcements (5)
- # beginners (56)
- # calva (2)
- # cider (30)
- # circleci (2)
- # cljsrn (90)
- # clojars (3)
- # clojure (18)
- # clojure-dev (9)
- # clojure-europe (3)
- # clojure-greece (14)
- # clojure-ireland (6)
- # clojure-italy (6)
- # clojure-nl (7)
- # clojure-norway (1)
- # clojure-spec (1)
- # clojure-sweden (3)
- # clojure-uk (14)
- # clojurescript (52)
- # cursive (5)
- # data-science (9)
- # datomic (3)
- # emacs (26)
- # expound (11)
- # figwheel (3)
- # figwheel-main (6)
- # fulcro (24)
- # garden (1)
- # graalvm (101)
- # liberator (1)
- # mount (1)
- # off-topic (1)
- # pathom (27)
- # portland-or (2)
- # reagent (13)
- # reitit (2)
- # ring (1)
- # shadow-cljs (10)
- # spacemacs (11)
- # sql (6)
Hi there, for some reason the alignment in lisp languages feels off. Multiline expressions are indented by 1 character. For example:
(local initial-state
{:state :idle
:menu nil
:page active
:really-long-key 'hello-there})
Is that normal\expeced?hi. it's strange/unexpected: https://github.com/bbatsov/clojure-style-guide#map-keys-alignment
Oh that style guide is great. Thanks! After playing around it seems specific to fennel-mode which is another lisp language. My solution is to use clojure mode instead.
which is frustrating to hear but i think it means you've got some setting somewhere.
Oof ok, I had nuked my .spacemacs file earlier but it didn’t fix the issue. I’ll try nuking all of it and doing a fresh install.
Once I removed it and replaced it with the universal Emacs distro it was indenting correctly.
clojure mode sets up its own indentation rules that you can modify. Not sure what controls other lisp indentations
I may have been on an older emacs-mac install
Argh! I was wrong again, it wasn’t due to emacs-mac. However I did try emacs -Q
and found that it was indenting correctly. Removing and reinstalling spacemacs.
I don't know what other folks do, but for decades I have ingrained emacs C-x C-b, then find the buffer I want, and select it, and do this way more than is healthy for my left hand. Finally, finally, I have seen the light and started binding a single unmodified key to ace-jump-buffer from the ace-jump-mode package. Oh my, how I wish I had done this a long time ago.
I switch between buffers very frequently, and often not because of jumping to the definition of a function where the cursor is. ace-jump-buffer pops up a list of buffer names, each with a key before their name that, if typed, switches to that buffer (long lists of buffers have some with two-key sequences, but they prefer home row keys, and never have modifiers, and I believe most recently used buffers are always near the beginning of the list).
Binding ace-jump-buffer to an unmodified single key gives me much less pressing of the control key.
What key have you chosen to bind ace-jump-buffer
to @U0CMVHBL2?
Just found this reading the avy-jump-buffer
README and 🤯 https://github.com/waymondo/frog-jump-buffer
I would have normally bound it to an easily reachable function key like F1, but since I use Viper mode inside of Emacs, and the 's' key was already used to switch between buffers, I used 's'.
@deleted-user I have not tried it, just stumbled upon it about an hour ago though. I’ll give it a shot 🙂 That said I just found the cause! It’s the spacemacs develop branch that is causing this issue for me. The indentation is correct on master. Anyway after a git bisect journey, this is the commit that introduced the issue: https://github.com/syl20bnr/spacemacs/commit/488fc0977f0e88aefab28cfe6ba30966fc4fcdbe
That may be true, but I used git bisect to do a binary search through all the commits between develop and master. The behavior is correct in the commits before it and broken from that commit until the latest develop. However, it may just be my .editorconfig.
Just found this reading the avy-jump-buffer
README and 🤯 https://github.com/waymondo/frog-jump-buffer