forked from davidlandry93/spaceros
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackages.el
More file actions
74 lines (59 loc) · 2 KB
/
packages.el
File metadata and controls
74 lines (59 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
;;; packages.el --- spaceros layer packages file for Spacemacs.
;;
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
;;
;; Author: David Landry <davidlandry93@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;;; Commentary:
;; See the Spacemacs documentation and FAQs for instructions on how to implement
;; a new layer:
;;
;; SPC h SPC layers RET
;;
;;
;; Briefly, each package to be installed or configured by this layer should be
;; added to `spaceros-packages'. Then, for each package PACKAGE:
;;
;; - If PACKAGE is not referenced by any other Spacemacs layer, define a
;; function `spaceros/init-PACKAGE' to load and initialize the package.
;; - Otherwise, PACKAGE is already referenced by another Spacemacs layer, so
;; define the functions `spaceros/pre-init-PACKAGE' and/or
;; `spaceros/post-init-PACKAGE' to customize the package as it is loaded.
;;; Code:
(defconst spaceros-packages
'(
(rosemacs :location
(recipe
:fetcher github
:repo "davidlandry93/ros_emacs_utils"
:files ("rosemacs" "rosemacs/*"))
:excluded t)
(helm-ros :location local))
"The list of Lisp packages required by the spaceros layer.")
;; Init rosemacs
(defun spaceros/pre-init-rosemacs ())
(defun spaceros/init-rosemacs ()
(when (getenv "ROS_DISTRO")
(use-package rosemacs-config)))
(defun spaceros/post-init-rosemacs ())
;; Init helm-ros
(defun spaceros/pre-init-helm-ros ())
(defun spaceros/init-helm-ros ()
(when (getenv "ROS_DISTRO")
(use-package helm-ros
:mode ("\\.launch\\'" . nxml-mode)
:commands (helm-ros
helm-ros-roscore
helm-ros-invalidate-cache
ros-process-mode
)
:config (progn
(evilified-state-evilify-map
ros-process-mode-map
:mode ros-process-mode)))))
(defun spaceros/post-init-helm-ros ())
;;; packages.el ends here