Skip to content

Instantly share code, notes, and snippets.

@syl20bnr
Last active January 22, 2019 20:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syl20bnr/a33e77f7107a36c248b6 to your computer and use it in GitHub Desktop.
Save syl20bnr/a33e77f7107a36c248b6 to your computer and use it in GitHub Desktop.
Add cuda-mode in Spacemacs
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; ...
;; List of additional packages that will be installed wihout being
;; wrapped in a layer. If you need some configuration for these
;; packages then consider to create a layer, you can also put the
;; configuration in `dotspacemacs/config'.
dotspacemacs-additional-packages '(cuda-mode)
;; ...
))
(defun dotspacemacs/config ()
"Configuration function.
This function is called at the very end of Spacemacs initialization after
layers configuration."
;; ...
(use-package cuda-mode
:defer t)
;; ...
)
@the-mikedavis
Copy link

Nice 😄

On the develop branch I have dotspacemacs/user-config instead of dotspacemacs/config these days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment