Skip to content

Commit

Permalink
Added rubocop, jade-mode and yard-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoj committed Apr 19, 2015
1 parent adef098 commit e0365c5
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 2 deletions.
27 changes: 25 additions & 2 deletions emacs/spacemacs
Expand Up @@ -32,6 +32,8 @@
editorconfig
(colors :variables
colors-enable-nyan-cat-progress-bar ,(display-graphic-p))
;; My own needed packages and config for them
franciscoj
)
;; A list of packages and/or extensions that will not be install and loaded.
dotspacemacs-excluded-packages '()
Expand Down Expand Up @@ -150,8 +152,29 @@ before layers configuration."
layers configuration."
(setq-default
js-indent-level 2)
(setq powerline-default-separator 'arrow)
)
(setq powerline-default-separator 'arrow))

;; Do not write anything past this comment. This is where Emacs will
;; auto-generate custom variable definitions.
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(ahs-case-fold-search nil)
'(ahs-default-range (quote ahs-range-whole-buffer))
'(ahs-idle-interval 0.25)
'(ahs-idle-timer 0 t)
'(ahs-inhibit-face-list nil)
'(package-selected-packages
(quote
(jade-mode rubocop jekyll-modes yard-mode evil-leader evil use-package bind-key dash)))
'(paradox-github-token t)
'(ring-bell-function (quote ignore)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(company-tooltip-common ((t (:inherit company-tooltip :weight bold :underline nil))))
'(company-tooltip-common-selection ((t (:inherit company-tooltip-selection :weight bold :underline nil)))))
33 changes: 33 additions & 0 deletions emacs/spacemacs-layers/franciscoj/extensions.el
@@ -0,0 +1,33 @@
;;; extensions.el --- franciscoj Layer extensions File for Spacemacs
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3

(defvar franciscoj-pre-extensions
'(
;; pre extension franciscojs go here
)
"List of all extensions to load before the packages.")

(defvar franciscoj-post-extensions
'(
;; post extension franciscojs go here
)
"List of all extensions to load after the packages.")

;; For each extension, define a function franciscoj/init-<extension-franciscoj>
;;
;; (defun franciscoj/init-my-extension ()
;; "Initialize my extension"
;; )
;;
;; Often the body of an initialize function uses `use-package'
;; For more info on `use-package', see readme:
;; https://github.com/jwiegley/use-package
44 changes: 44 additions & 0 deletions emacs/spacemacs-layers/franciscoj/packages.el
@@ -0,0 +1,44 @@
;;; packages.el --- franciscoj Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3

(defvar franciscoj-packages
'(yard-mode
rubocop
jade-mode)
"List of all packages to install and/or initialize. Built-in packages
which require an initialization must be listed explicitly in the list.")

(defvar franciscoj-excluded-packages '()
"List of packages to exclude.")

;; For each package, define a function franciscoj/init-<package-franciscoj>
;;
;; (defun franciscoj/init-my-package ()
;; "Initialize my package"
;; )
;;
;; Often the body of an initialize function uses `use-package'
;; For more info on `use-package', see readme:
;; https://github.com/jwiegley/use-package

(defun franciscoj/init-yard-mode ()
"Initialize yard-mode on Ruby files"
(use-package yard-mode
:init (add-hook 'enh-ruby-mode-hook 'yard-mode)))

(defun franciscoj/init-rubocop ()
"Initialize rubocop"
(use-package robocop))

(defun franciscoj/init-jade-mode ()
"Initialize jade mode"
(use-package jade-mode))

0 comments on commit e0365c5

Please sign in to comment.