Skip to content

Commit

Permalink
Unify packages list parentheses style
Browse files Browse the repository at this point in the history
problem:
some layer packages lists have the open and closing parentheses on the same line
as the first and last listed package, but most seem to have them on a separate
lines.

solution:
put the open and close parentheses on separate lines, except for lists with only
a single package, they are written on the same line as the variable name and
parentheses.

fix the lists indentation
  • Loading branch information
duianto authored and sdwolfz committed Nov 21, 2018
1 parent 8c76fed commit ee811f7
Show file tree
Hide file tree
Showing 46 changed files with 323 additions and 296 deletions.
24 changes: 12 additions & 12 deletions layers/+chat/rcirc/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
;;; License: GPLv3

(setq rcirc-packages
'(
company
company-emoji
emoji-cheat-sheet-plus
flyspell
(helm-rcirc :location local
:requires helm)
persp-mode
rcirc
rcirc-color
rcirc-notify
))
'(
company
company-emoji
emoji-cheat-sheet-plus
flyspell
(helm-rcirc :location local
:requires helm)
persp-mode
rcirc
rcirc-color
rcirc-notify
))

(defun rcirc/post-init-company ()
(spacemacs|add-company-backends :backends company-capf :modes rcirc-mode))
Expand Down
3 changes: 2 additions & 1 deletion layers/+checkers/spell-checking/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
(flyspell-correct-helm :toggle (configuration-layer/layer-used-p 'helm))
(flyspell-correct-popup :toggle (and (not (configuration-layer/layer-used-p 'ivy))
(not (configuration-layer/layer-used-p 'helm))))
(flyspell-popup :toggle enable-flyspell-auto-completion)))
(flyspell-popup :toggle enable-flyspell-auto-completion)
))

(defun spell-checking/init-auto-dictionary ()
(use-package auto-dictionary
Expand Down
10 changes: 5 additions & 5 deletions layers/+checkers/syntax-checking/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
;;; License: GPLv3

(setq syntax-checking-packages
'(
flycheck
flycheck-pos-tip
popwin
))
'(
flycheck
flycheck-pos-tip
popwin
))

(defun syntax-checking/init-flycheck ()
(use-package flycheck
Expand Down
3 changes: 1 addition & 2 deletions layers/+completion/templates/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
;;
;;; License: GPLv3

(setq templates-packages
'(yatemplate))
(setq templates-packages '(yatemplate))

(defun templates/init-yatemplate ()
(use-package yatemplate
Expand Down
6 changes: 4 additions & 2 deletions layers/+emacs/better-defaults/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
;;; License: GPLv3

(defconst better-defaults-packages
'(mwim
unfill)
'(
mwim
unfill
)
"The list of Lisp packages required by the mwim layer.")

(defun better-defaults/init-mwim ()
Expand Down
4 changes: 2 additions & 2 deletions layers/+email/notmuch/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
(helm-notmuch :requires helm)
notmuch
org
persp-mode)
)
persp-mode
))

(defun notmuch/init-counsel-notmuch ()
(use-package counsel-notmuch
Expand Down
6 changes: 4 additions & 2 deletions layers/+filetree/treemacs/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
;;; License: GPLv3

(defconst treemacs-packages
'(golden-ratio
'(
golden-ratio
treemacs
(treemacs-evil :toggle (memq dotspacemacs-editing-style '(vim hybrid)))
treemacs-projectile
winum))
winum
))

(defun treemacs/pre-init-golden-ratio ()
(spacemacs|use-package-add-hook golden-ratio
Expand Down
6 changes: 4 additions & 2 deletions layers/+fonts/unicode-fonts/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
;;; Code:

(defconst unicode-fonts-packages
'(unicode-fonts
persistent-soft))
'(
unicode-fonts
persistent-soft
))

(defun unicode-fonts/init-persistent-soft ()
(use-package persistent-soft
Expand Down
5 changes: 1 addition & 4 deletions layers/+frameworks/django/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
;;
;;; License: GPLv3

(setq django-packages
'(
pony-mode
))
(setq django-packages '(pony-mode))

(defun django/init-pony-mode ()
(use-package pony-mode
Expand Down
6 changes: 4 additions & 2 deletions layers/+frameworks/emberjs/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
;;; Code:

(defconst emberjs-packages
'(ember-mode
ember-yasnippets))
'(
ember-mode
ember-yasnippets
))

(defun emberjs/init-ember-mode ()
(use-package ember-mode
Expand Down
3 changes: 1 addition & 2 deletions layers/+frameworks/phoenix/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
;;
;;; License: GPLv3

(defconst phoenix-packages
'(alchemist))
(defconst phoenix-packages '(alchemist))

(defun phoenix/post-init-alchemist ()
(progn
Expand Down
10 changes: 5 additions & 5 deletions layers/+frameworks/ruby-on-rails/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
;;; License: GPLv3

(setq ruby-on-rails-packages
'(
feature-mode
projectile-rails
which-key
))
'(
feature-mode
projectile-rails
which-key
))

(defun ruby-on-rails/init-projectile-rails ()
(use-package projectile-rails
Expand Down
7 changes: 5 additions & 2 deletions layers/+intl/japanese/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3

;; List of all packages to install and/or initialize. Built-in packages
;; which require an initialization must be listed explicitly in the list.
(setq japanese-packages
'(evil-tutor-ja
'(
evil-tutor-ja
migemo
avy-migemo
ddskk
japanese-holidays
pangu-spacing
org))
org
))

(defun japanese/init-evil-tutor-ja ()
(use-package evil-tutor-ja
Expand Down
6 changes: 4 additions & 2 deletions layers/+lang/agda/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
;;; License: GPLv3

(setq agda-packages
'((agda :location local)
'(
(agda :location local)
company
golden-ratio))
golden-ratio
))

(defun agda/post-init-company ()
(spacemacs|add-company-backends :backends company-capf :modes agda2-mode))
Expand Down
3 changes: 1 addition & 2 deletions layers/+lang/autohotkey/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
;;
;;; License: GPLv3

(setq autohotkey-packages
'(ahk-mode))
(setq autohotkey-packages '(ahk-mode))

(defun autohotkey/init-ahk-mode ()
(use-package ahk-mode
Expand Down
61 changes: 31 additions & 30 deletions layers/+lang/c-c++/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,37 @@
;;; License: GPLv3

(setq c-c++-packages
'(
cc-mode
clang-format
company
(company-c-headers :requires company)
(company-rtags :requires company rtags)
company-ycmd
counsel-gtags
disaster
flycheck
(flycheck-rtags :requires flycheck rtags)
gdb-mi
ggtags
google-c-style
helm-cscope
helm-gtags
(helm-rtags :requires helm rtags)
(ivy-rtags :requires ivy rtags)
org
realgud
rtags
semantic
srefactor
stickyfunc-enhance
xcscope
ycmd
;;lsp-backend
(cquery :requires lsp-mode)
(ccls :requires lsp-mode)
projectile))
'(
cc-mode
clang-format
company
(company-c-headers :requires company)
(company-rtags :requires company rtags)
company-ycmd
counsel-gtags
disaster
flycheck
(flycheck-rtags :requires flycheck rtags)
gdb-mi
ggtags
google-c-style
helm-cscope
helm-gtags
(helm-rtags :requires helm rtags)
(ivy-rtags :requires ivy rtags)
org
realgud
rtags
semantic
srefactor
stickyfunc-enhance
xcscope
ycmd
;;lsp-backend
(cquery :requires lsp-mode)
(ccls :requires lsp-mode)
projectile
))


(defun c-c++/init-cc-mode ()
Expand Down
6 changes: 4 additions & 2 deletions layers/+lang/clojure/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
;;; License: GPLv3

(setq clojure-packages
'(cider
'(
cider
cider-eval-sexp-fu
(clj-refactor :toggle clojure-enable-clj-refactor)
clojure-cheatsheet
Expand All @@ -27,7 +28,8 @@
popwin
(sayid :toggle clojure-enable-sayid)
smartparens
subword))
subword
))

(defun clojure/init-cider ()
(use-package cider
Expand Down
3 changes: 2 additions & 1 deletion layers/+lang/common-lisp/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
;;; License: GPLv3

(setq common-lisp-packages
'(auto-highlight-symbol
'(
auto-highlight-symbol
(common-lisp-snippets :requires yasnippet)
evil
evil-cleverparens
Expand Down
20 changes: 10 additions & 10 deletions layers/+lang/csharp/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
;;; License: GPLv3

(setq csharp-packages
'(
company
csharp-mode
evil-matchit
ggtags
counsel-gtags
helm-gtags
omnisharp
flycheck
))
'(
company
csharp-mode
evil-matchit
ggtags
counsel-gtags
helm-gtags
omnisharp
flycheck
))

(defun csharp/init-omnisharp ()
;; Load omnisharp-mode with csharp-mode,
Expand Down
28 changes: 14 additions & 14 deletions layers/+lang/elixir/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
;;; License: GPLv3

(setq elixir-packages
'(
alchemist
company
elixir-mode
flycheck
flycheck-mix
flycheck-credo
ggtags
counsel-gtags
helm-gtags
ob-elixir
popwin
smartparens
))
'(
alchemist
company
elixir-mode
flycheck
flycheck-mix
flycheck-credo
ggtags
counsel-gtags
helm-gtags
ob-elixir
popwin
smartparens
))

(defun elixir/post-init-company ()
(when (configuration-layer/package-used-p 'alchemist)
Expand Down
3 changes: 2 additions & 1 deletion layers/+lang/emacs-lisp/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
parinfer
semantic
smartparens
srefactor))
srefactor
))

(defun emacs-lisp/init-ielm ()
(use-package ielm
Expand Down
Loading

0 comments on commit ee811f7

Please sign in to comment.