Skip to content

Commit

Permalink
Rename spacemacs-core to spacemacs-base
Browse files Browse the repository at this point in the history
Per the discussion in #3002.
  • Loading branch information
robbyoconnor committed Sep 16, 2015
1 parent d42a642 commit d2c71fa
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 45 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;;; config.el --- Spacemacs Core Layer configuration File
;;; config.el --- Spacemacs Base Layer configuration File
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;;; funcs.el --- Spacemacs Core Layer functions File
;;; funcs.el --- Spacemacs Base Layer functions File
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;;; keybindings.el --- Spacemacs Core Layer key-bindings File
;;; keybindings.el --- Spacemacs Base Layer key-bindings File
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
;;
;;; License: GPLv3

(setq spacemacs-core-packages
(setq spacemacs-base-packages
'(
bind-key
bookmark
Expand Down Expand Up @@ -55,17 +55,17 @@

;; Initialization of packages

(defun spacemacs-core/init-bind-key ())
(defun spacemacs-base/init-bind-key ())

(defun spacemacs-core/init-bookmark ()
(defun spacemacs-base/init-bookmark ()
(use-package bookmark
:defer t
:init
(setq bookmark-default-file (concat spacemacs-cache-directory "bookmarks")
;; autosave each change
bookmark-save-flag 1)))

(defun spacemacs-core/init-diminish ()
(defun spacemacs-base/init-diminish ()
(use-package diminish
:init
(progn
Expand All @@ -86,7 +86,7 @@
'(when (eval-when-compile (version< "24.3.1" emacs-version))
(diminish 'subword-mode))))))

(defun spacemacs-core/init-eldoc ()
(defun spacemacs-base/init-eldoc ()
(use-package eldoc
:defer t
:config
Expand All @@ -98,17 +98,17 @@
;; don't display eldoc on modeline
(spacemacs|hide-lighter eldoc-mode))))

(defun spacemacs-core/init-builtin-process-menu ()
(defun spacemacs-base/init-builtin-process-menu ()
(evilify process-menu-mode process-menu-mode-map))

(defun spacemacs-core/init-builtin-ido ()
(defun spacemacs-base/init-builtin-ido ()
(ido-mode t)
(setq ido-save-directory-list-file (concat spacemacs-cache-directory
"ido.last")
;; enable fuzzy matching
ido-enable-flex-matching t))

(defun spacemacs-core/init-builtin-hs-minor-mode ()
(defun spacemacs-base/init-builtin-hs-minor-mode ()
;; required for evil folding
(defun spacemacs//enable-hs-minor-mode ()
"Enable hs-minor-mode for code folding."
Expand All @@ -117,10 +117,10 @@
(spacemacs|hide-lighter hs-minor-mode)))
(add-hook 'prog-mode-hook 'spacemacs//enable-hs-minor-mode))

(defun spacemacs-core/init-builtin-electric-indent-mode ()
(defun spacemacs-base/init-builtin-electric-indent-mode ()
(electric-indent-mode))

(defun spacemacs-core/init-builtin-uniquify ()
(defun spacemacs-base/init-builtin-uniquify ()
(require 'uniquify)
;; When having windows with repeated filenames, uniquify them
;; by the folder they are in rather those annoying <2>,<3>,.. etc
Expand All @@ -145,7 +145,7 @@
;; ;; inside the use-package function
;; (add-hook 'ediff-keymap-setup-hook 'ediff/setup-ediff-keymaps)
;; ```
(defun spacemacs-core/init-ediff ()
(defun spacemacs-base/init-ediff ()
(use-package ediff
:defer t
:init
Expand All @@ -157,7 +157,7 @@
ediff-split-window-function 'split-window-horizontally
ediff-merge-split-window-function 'split-window-horizontally))))

(defun spacemacs-core/init-eldoc ()
(defun spacemacs-base/init-eldoc ()
(use-package eldoc
:defer t
:config
Expand All @@ -169,7 +169,7 @@
;; don't display eldoc on modeline
(spacemacs|hide-lighter eldoc-mode))))

(defun spacemacs-core/init-evil ()
(defun spacemacs-base/init-evil ()
(use-package evil
:init
(progn
Expand Down Expand Up @@ -418,14 +418,14 @@ Example: (evil-map visual \"<\" \"<gv\")"
(call-interactively 'sp-backward-delete-char)
ad-do-it))))))

(defun spacemacs-core/init-evil-escape ()
(defun spacemacs-base/init-evil-escape ()
(use-package evil-escape
:init
(evil-escape-mode)
:config
(spacemacs|hide-lighter evil-escape-mode)))

(defun spacemacs-core/init-evil-leader ()
(defun spacemacs-base/init-evil-leader ()
(use-package evil-leader
:init
(progn
Expand Down Expand Up @@ -460,7 +460,7 @@ Example: (evil-map visual \"<\" \"<gv\")"
(add-hook 'evil-local-mode-hook
'spacemacs/activate-major-mode-leader t)))))

(defun spacemacs-core/init-evil-surround ()
(defun spacemacs-base/init-evil-surround ()
(use-package evil-surround
:init
(progn
Expand All @@ -470,7 +470,7 @@ Example: (evil-map visual \"<\" \"<gv\")"
(evil-define-key 'visual evil-surround-mode-map "s" 'evil-surround-region)
(evil-define-key 'visual evil-surround-mode-map "S" 'evil-substitute))))

(defun spacemacs-core/init-evil-visualstar ()
(defun spacemacs-base/init-evil-visualstar ()
(use-package evil-visualstar
:commands (evil-visualstar/begin-search-forward
evil-visualstar/begin-search-backward)
Expand All @@ -481,12 +481,12 @@ Example: (evil-map visual \"<\" \"<gv\")"
(define-key evil-visual-state-map (kbd "#")
'evil-visualstar/begin-search-backward))))

(defun spacemacs-core/init-exec-path-from-shell ()
(defun spacemacs-base/init-exec-path-from-shell ()
(use-package exec-path-from-shell
:init (when (memq window-system '(mac ns x))
(exec-path-from-shell-initialize))))

(defun spacemacs-core/init-fill-column-indicator ()
(defun spacemacs-base/init-fill-column-indicator ()
(use-package fill-column-indicator
:defer t
:init
Expand All @@ -505,7 +505,7 @@ Example: (evil-map visual \"<\" \"<gv\")"
:config
(spacemacs|hide-lighter fci-mode)))

(defun spacemacs-core/init-helm ()
(defun spacemacs-base/init-helm ()
(use-package helm
:defer 1
:commands (spacemacs/helm-find-files)
Expand Down Expand Up @@ -892,7 +892,7 @@ ARG non nil means that the editing style is `vim'."
(eval-after-load "helm-mode" ; required
'(spacemacs|hide-lighter helm-mode)))))

(defun spacemacs-core/init-helm-descbinds ()
(defun spacemacs-base/init-helm-descbinds ()
(use-package helm-descbinds
:defer t
:init
Expand All @@ -901,7 +901,7 @@ ARG non nil means that the editing style is `vim'."
(add-hook 'helm-mode-hook 'helm-descbinds-mode)
(evil-leader/set-key "?" 'helm-descbinds))))

(defun spacemacs-core/init-helm-projectile ()
(defun spacemacs-base/init-helm-projectile ()
(use-package helm-projectile
:commands (helm-projectile-switch-to-buffer
helm-projectile-find-dir
Expand Down Expand Up @@ -933,13 +933,13 @@ ARG non nil means that the editing style is `vim'."
"pv" 'projectile-vc
"sgp" 'helm-projectile-grep))))

(defun spacemacs-core/init-helm-spacemacs ()
(defun spacemacs-base/init-helm-spacemacs ()
(use-package helm-spacemacs
:commands helm-spacemacs
:init
(evil-leader/set-key "feh" 'helm-spacemacs)))

(defun spacemacs-core/init-holy-mode ()
(defun spacemacs-base/init-holy-mode ()
(use-package holy-mode
:commands holy-mode
:init
Expand All @@ -953,7 +953,7 @@ ARG non nil means that the editing style is `vim'."
:documentation "Globally toggle holy mode."
:evil-leader "E H"))))

(defun spacemacs-core/init-hybrid-mode ()
(defun spacemacs-base/init-hybrid-mode ()
(use-package hybrid-mode
:config
(progn
Expand All @@ -968,7 +968,7 @@ ARG non nil means that the editing style is `vim'."
'(define-key evil-hybrid-state-map
(kbd dotspacemacs-emacs-leader-key) evil-leader--default-map)))))

(defun spacemacs-core/init-ido-vertical-mode ()
(defun spacemacs-base/init-ido-vertical-mode ()
(use-package ido-vertical-mode
:init
(progn
Expand Down Expand Up @@ -1141,17 +1141,17 @@ ARG non nil means that the editing style is `vim'."
("t" spacemacs/ido-invoke-in-new-frame :exit t)
("v" spacemacs/ido-invoke-in-horizontal-split :exit t)))))

(defun spacemacs-core/init-page-break-lines ()
(defun spacemacs-base/init-page-break-lines ()
(use-package page-break-lines
:init
(global-page-break-lines-mode t)
(spacemacs|hide-lighter page-break-lines-mode)))

(defun spacemacs-core/init-popup ()
(defun spacemacs-base/init-popup ()
(use-package popup
:defer t))

(defun spacemacs-core/init-popwin ()
(defun spacemacs-base/init-popwin ()
(use-package popwin
:config
(progn
Expand Down Expand Up @@ -1180,7 +1180,7 @@ ARG non nil means that the editing style is `vim'."
(string-match str (car x))))
popwin:special-display-config))))))

(defun spacemacs-core/init-projectile ()
(defun spacemacs-base/init-projectile ()
(use-package projectile
:commands (projectile-ack
projectile-ag
Expand Down Expand Up @@ -1243,9 +1243,9 @@ ARG non nil means that the editing style is `vim'."
(projectile-global-mode)
(spacemacs|hide-lighter projectile-mode))))

(defun spacemacs-core/init-quelpa ())
(defun spacemacs-base/init-quelpa ())

(defun spacemacs-core/init-recentf ()
(defun spacemacs-base/init-recentf ()
(use-package recentf
:defer t
:init
Expand All @@ -1262,7 +1262,7 @@ ARG non nil means that the editing style is `vim'."
(setq recentf-auto-cleanup 'never)
(setq recentf-auto-save-timer (run-with-idle-timer 600 t 'recentf-save-list))))

(defun spacemacs-core/init-savehist ()
(defun spacemacs-base/init-savehist ()
(use-package savehist
:init
(progn
Expand All @@ -1278,23 +1278,23 @@ ARG non nil means that the editing style is `vim'."
savehist-autosave-interval 60)
(savehist-mode t))))

(defun spacemacs-core/init-saveplace ()
(defun spacemacs-base/init-saveplace ()
(use-package saveplace
:init
(progn
;; Save point position between sessions
(setq save-place t
save-place-file (concat spacemacs-cache-directory "places")))))

(defun spacemacs-core/init-spacemacs-theme ()
(defun spacemacs-base/init-spacemacs-theme ()
(use-package spacemacs-theme
:defer t
:init
(progn
(setq spacemacs-theme-comment-bg t)
(setq spacemacs-theme-org-height t))))

(defun spacemacs-core/init-subword ()
(defun spacemacs-base/init-subword ()
(unless (version< emacs-version "24.4")
(use-package subword
:defer t
Expand Down Expand Up @@ -1328,7 +1328,7 @@ ARG non nil means that the editing style is `vim'."
:config
(spacemacs|diminish subword-mode "" " c"))))

(defun spacemacs-core/init-undo-tree ()
(defun spacemacs-base/init-undo-tree ()
(use-package undo-tree
:init
(global-undo-tree-mode)
Expand All @@ -1337,9 +1337,9 @@ ARG non nil means that the editing style is `vim'."
:config
(spacemacs|hide-lighter undo-tree-mode)))

(defun spacemacs-core/init-use-package ())
(defun spacemacs-base/init-use-package ())

(defun spacemacs-core/init-which-key ()
(defun spacemacs-base/init-which-key ()
(use-package which-key
:init
(progn
Expand Down Expand Up @@ -1410,7 +1410,7 @@ ARG non nil means that the editing style is `vim'."
(which-key-mode)
(spacemacs|diminish which-key-mode "" " K"))))

(defun spacemacs-core/init-whitespace ()
(defun spacemacs-base/init-whitespace ()
(use-package whitespace
:defer t
:init
Expand Down Expand Up @@ -1465,7 +1465,7 @@ ARG non nil means that the editing style is `vim'."
(spacemacs|diminish whitespace-mode "" " w")
(spacemacs|diminish global-whitespace-mode "" " W"))))

(defun spacemacs-core/init-winner ()
(defun spacemacs-base/init-winner ()
(use-package winner
:init
(progn
Expand Down
2 changes: 1 addition & 1 deletion layers/+distribution/spacemacs/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

;; Prerequisites

(configuration-layer/declare-layer 'spacemacs-core)
(configuration-layer/declare-layer 'spacemacs-base)

0 comments on commit d2c71fa

Please sign in to comment.