# Compilation of quick HOW-TOs for Spacemacs **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) - [Disable company for a specific major-mode](#disable-company-for-a-specific-major-mode) ## 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 dotspacemacs-excluded-packages '(package1 package2 ...) ``` ## 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: SPC h d v major-mode RET ## Disable company for a specific major-mode It may be handy to disable `company` for a given mode if you plan on configuring `auto-complete` instead. On easy way to do it is to use the macro `spacemacs|disable-company` in the function `dotspacemacs/config` of your dotfile. The following snippet disables company for `python-mode`: ```elisp (spacemacs|disable-company python-mode) ```