Configure the following for Portage.
Emerge the following packages:
Company-Ebuild should pull in
if that does not happen, then report a bug ;-D
Add the following to your user's Emacs initialization file.
The initialization file is either
~/.config/emacs/init.el for newer versions of GNU Emacs.
(require 'ebuild-mode) (require 'company-ebuild) (require 'flycheck) (require 'flycheck-pkgcheck) (add-hook 'ebuild-mode-hook 'company-ebuild-setup) (add-hook 'ebuild-mode-hook 'flycheck-mode) (add-hook 'ebuild-mode-hook 'flycheck-pkgcheck-setup)
We can also configure our environment using a
that simplifies the setup a little bit.
To use the below configuration the
will have to be installed.
(require 'use-package) (use-package ebuild-mode :defer t :mode "\\.\\(ebuild\\|eclass\\)\\'" :hook ((ebuild-mode . company-ebuild-setup) (ebuild-mode . flycheck-mode) (ebuild-mode . flycheck-pkgcheck-setup)))
:defer t and
:mode "..." enable deferred loading which theoretically
speeds up GNU Emacs initialization time at the cost of running the whole
use-package block of
:mode condition is met.