This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-20
Channels
- # admin-announcements (5)
- # alda (1)
- # aws-lambda (1)
- # beginners (74)
- # boot (62)
- # cider (29)
- # cljs-dev (36)
- # cljsjs (15)
- # cljsrn (34)
- # clojure (58)
- # clojure-android (3)
- # clojure-austin (15)
- # clojure-austria (11)
- # clojure-dusseldorf (25)
- # clojure-germany (6)
- # clojure-greece (26)
- # clojure-quebec (8)
- # clojure-russia (50)
- # clojure-spec (12)
- # clojure-uk (8)
- # clojurescript (46)
- # core-async (11)
- # cursive (22)
- # datomic (2)
- # devcards (27)
- # dirac (5)
- # hoplon (109)
- # jobs (1)
- # kekkonen (2)
- # lein-figwheel (12)
- # leiningen (2)
- # microservices (1)
- # off-topic (3)
- # om (70)
- # onyx (17)
- # planck (21)
- # re-frame (3)
- # reagent (2)
- # rum (1)
- # spacemacs (12)
- # spirituality-ethics (9)
- # untangled (44)
- # vim (2)
- # yada (8)
When I try to write {
(Alt-Shift-8) or [
(Alt-8) in Insert mode, Spacemacs executes some commands instead. Is there some smart way to change or avoid this?
It's a bit hard to program Clojure without those chars 🙂
I'm on a Mac btw
I think I might have found something.... https://github.com/syl20bnr/spacemacs/issues/973 . Refers to a fix using a layer variable called osx-scandinavian-keyboard-layout
.
Just can't figure out how to add the configuration 😕
@reefersleep: I don't know, but is there any reason why you have to use a Scandinavian keyboard layout? As a Scandinavian myself, I find the Scandinavian layouts to be unbearably painful for any kind of programming (Alt+Shift combos for curly braces? Seriously?). I always use a US layout when programming, as do most of the other Scandinavian programmers I know. When I need to type something in Scandinavian, I just switch input method to latin-1-postfix
.
In addition to the various characters being easier to type on a US keyboard layout, a further advantage is that most of the standard vim/spacemacs key press sequences are more comfortable.
@tord: I recognize the comfort of a vim-friendly layout, but I would prefer staying with a Danish keyboard layout - I've already got confusing configurations going on, remapping CapsLock and Tab, and certain key combinations. And I'm still in a learning phase with Emacs. I'm very comfortable (usage-wise, perhaps not ergonomics-wise 😉 ) with the Danish keyboard layout for Vim. And I'm trying to be easy on other people using my computer as well 🙂
btw, I've also tried following the instructions on https://github.com/syl20bnr/spacemacs/tree/master/layers/osx , but I haven't had any luck. Maybe I'm not applying the options correctly in my .spacemacs
.
I finally figured it out, it was not a spacemacs-specific solution, though
I added (setq mac-option modifier nil)
to my user-config thusly:
(defun dotspacemacs/user-config ()
"Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration. You are free to put any user code."
(setq-default evil-escape-key-sequence "jk")
(setq-default evil-escape-delay 0.2)
;; Make linums relative by default
(global-linum-mode nil)
(linum-relative-toggle)
;; (evil-want-fine-undo nil)
(setq mac-option-modifier nil)
)