Fork me on GitHub

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.... . 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 , 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)
;;  (evil-want-fine-undo nil)
  (setq mac-option-modifier nil)