Skip to content

Commit

Permalink
remove indentation configuration, smart parens
Browse files Browse the repository at this point in the history
  • Loading branch information
samontea committed Jun 6, 2020
1 parent 6e19356 commit 02500dc
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 60 deletions.
1 change: 0 additions & 1 deletion .emacs.d/lisp/code/code-hub.el
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(kotct/hub "code"
(editorconfig-c
magit-c
smartparens-c
indentation
code-navigation))

Expand Down
6 changes: 0 additions & 6 deletions .emacs.d/lisp/code/languages/c.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,4 @@
;; set style to linux
(setf c-default-style "linux")

;; use tab-width for indentation
(kotct/setf-tab c-basic-offset)

;; use smart tabs
(smart-tabs-insinuate 'c)

(provide 'c)
8 changes: 0 additions & 8 deletions .emacs.d/lisp/code/languages/fish.el
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
(require 'fish-mode)

(smart-tabs-add-language-support fish fish-mode-hook
((fish-indent-line . standard-indent)
(fish-indent-region . standard-indent)))

(smart-tabs-insinuate 'fish)

(add-hook 'fish-mode-hook (lambda () (setf indent-tabs-mode t)))

(provide 'fish)
2 changes: 0 additions & 2 deletions .emacs.d/lisp/code/languages/java.el
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
;; TODO: implement IDE-like java editing

(smart-tabs-insinuate 'java)

(provide 'java)
15 changes: 0 additions & 15 deletions .emacs.d/lisp/code/languages/ruby.el
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
(require 'indentation)

;; Set ruby-indent-level to global-tab-width
(kotct/setq-default-tab ruby-indent-level)

;; Add Smart Tabs language support for Ruby using the
;; `smart-tabs-add-language-support' macro.
(smart-tabs-add-language-support ruby ruby-mode-hook
((ruby-indent-line . ruby-indent-level)
(ruby-indent-level . ruby-indent-level)))

;; Apply Ruby language support to Smart Tabs.
(smart-tabs-insinuate 'ruby)

;; Use tabs mode in Ruby by default.
(setf ruby-indent-tabs-mode t)

;; Don't use SMIE because SMIE sucks.
(setf ruby-use-smie nil)

Expand Down
13 changes: 0 additions & 13 deletions .emacs.d/lisp/code/languages/rust.el
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
(require 'indentation)

;; Set `rust-indent-offset' to the `global-tab-width' value.
(kotct/setq-default-tab rust-indent-offset)

;; Add language support for Rust.
(smart-tabs-add-language-support rust rust-mode-hook
((rust-mode-indent-line . rust-indent-offset)))

;; Use `indent-tabs-mode' in `rust-mode'
(add-hook 'rust-mode-hook (lambda () (setf indent-tabs-mode t)))

;; Turn on Rust support in Smart Tabs.
(smart-tabs-insinuate 'rust)

;; Don't indent `where' clauses in Rust.
(setf rust-indent-where-clause nil)

Expand Down
7 changes: 0 additions & 7 deletions .emacs.d/lisp/code/languages/sh.el
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
(require 'indentation)

;; Synchronize `sh-basic-offset' and `sh-indentation' to the global tab size
(kotct/setf-tab sh-basic-offset)
(kotct/setf-tab sh-indentation)

;; Always use indent-tabs-mode in sh-mode
(add-hook 'sh-mode-hook (lambda () (setf indent-tabs-mode t)))

;; Indent case labels at the same level as the case statement
(setf sh-indent-for-case-label 0)

Expand Down
2 changes: 0 additions & 2 deletions .emacs.d/lisp/code/languages/web-c.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@
(setf web-mode-enable-control-block-indentation nil)
(setf web-mode-script-padding 0)

(add-hook 'web-mode-hook (lambda () (setf indent-tabs-mode t)))

(provide 'web-c)
5 changes: 0 additions & 5 deletions .emacs.d/lisp/code/smartparens-c.el

This file was deleted.

1 change: 0 additions & 1 deletion .emacs.d/lisp/package/dependencies.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
rust-mode ;; for editing Rust code
yaml-mode ;; for editing YAML files
buttercup ;; for tests
smartparens ;; for dealing with paired control flow symbols
gitignore-mode ;; for editing .gitignore files
gitattributes-mode ;; for editing .gitattributes files
gitconfig-mode ;; for editing .git/config files
Expand Down

0 comments on commit 02500dc

Please sign in to comment.