This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/doc/HOWTOs.md

35 lines
1.2 KiB
Markdown
Raw Normal View History

2015-04-08 01:25:06 +00:00
# Compilation of quick HOW-TOs for Spacemacs
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
**Table of Contents**
- [Compilation of quick HOW-TOs for Spacemacs](#compilation-of-quick-how-tos-for-spacemacs)
- [Disable a package completely](#disable-a-package-completely)
- [Disable a package only for a specific major-mode](#disable-a-package-only-for-a-specific-major-mode)
<!-- markdown-toc end -->
## Disable a package completely
To completely disable a package and effectively uninstalling it even if it
is part of your used layers, look for the variable
`dotspacemacs-excluded-packages` in your dotfile and add the package name
to it:
```elisp
2015-04-08 02:37:22 +00:00
dotspacemacs-excluded-packages '(package1 package2 ...)
2015-04-08 01:25:06 +00:00
```
## Disable a package only for a specific major-mode
This is done by removing the hook added by Spacemacs. For example to
remove `flycheck` support in python buffers, look for the function
`dotspacemacs/config` in your dotfile and add the following code:
```elisp
(remove-hook 'python-mode-hook 'flycheck-mode)
```
**Hint** to know the name of the major-mode of the current buffer press:
<kbd>SPC h d v major-mode RET</kbd>