From 96d184c8426d20696ae5b90d00dcca59275e1359 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Fri, 9 Oct 2015 17:28:24 -0400 Subject: Add additional languages to spacemacs. --- spacemacs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/spacemacs b/spacemacs index 4a2efb1..85223e5 100644 --- a/spacemacs +++ b/spacemacs @@ -26,6 +26,12 @@ values." ;; auto-completion ;; better-defaults emacs-lisp + shell + c-c++ + haskell + html + javascript + markdown ;; git ;; markdown ;; org @@ -94,7 +100,7 @@ values." :size 20 :weight normal :width normal - :powerline-scale 1.0) + :powerline-scale 1.1) ;; The leader key dotspacemacs-leader-key "SPC" ;; The leader key accessible in `emacs state' and `insert state' @@ -193,6 +199,14 @@ values." "Initialization function for user code. It is called immediately after `dotspacemacs/init'. You are free to put any user code." + ;; bind ctrl-w to backwards-kill-word when no region is selected + (global-set-key (kbd "C-w") 'backward-kill-word-or-kill-region) + + (defun backward-kill-word-or-kill-region (&optional arg) + (interactive "p") + (if (region-active-p) + (kill-region (region-beginning) (region-end)) + (backward-kill-word arg))) ) (defun dotspacemacs/user-config () @@ -200,6 +214,7 @@ user code." This function is called at the very end of Spacemacs initialization after layers configuration. You are free to put any user code." (add-hook 'haskell-mode-hook 'turn-on-haskell-indent) + (setq-default vc-follow-symlinks nil) ) ;; Do not write anything past this comment. This is where Emacs will -- cgit v1.2.3