Skip to content

Commit

Permalink
1. setup tab. try to make tab to insert space
Browse files Browse the repository at this point in the history
2. setup smartparens for clojure mode
  • Loading branch information
ryangMYOB committed Dec 3, 2014
1 parent a0a7041 commit 083ec7d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion init.el
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
smex
ido-ubiquitous
elfeed
smart-tabs-mode
smartparens
ggtags
company
color-theme-sanityinc-solarized
Expand Down
6 changes: 4 additions & 2 deletions setup-clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
(cljr-add-keybindings-with-modifier "C-s-")
(define-key clj-refactor-map (kbd "C-x C-r") 'cljr-rename-file)

(add-hook 'clojure-mode-hook (lambda () (clj-refactor-mode 1)))
(add-hook 'clojure-mode-hook
(lambda ()
(clj-refactor-mode 1)
(smartparens-mode 1)))

(define-key clojure-mode-map (kbd "s-j") 'clj-jump-to-other-file)

Expand Down Expand Up @@ -42,5 +45,4 @@
;; Enable eldoc in Clojure buffers
(add-hook 'cider-mode-hook 'cider-turn-on-eldoc-mode)


(provide 'setup-clojure-mode)
3 changes: 3 additions & 0 deletions users/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
(dark)
(set-face-attribute 'default nil :height 150)

;; smartparens
(require 'smartparens-config)

(require 'my-func)
(require 'my-key-bindings)
(require 'my-setup-ffip)
Expand Down
4 changes: 2 additions & 2 deletions users/setup-tab.el
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(setq-default indent-tabs-mode nil)
(setq-default tab-width 2)
(setq tab-width 2)
(setq indent-tab-mode nil)

(setq js2-basic-offset 2)

(provide 'setup-tab)

0 comments on commit 083ec7d

Please sign in to comment.