aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-03-18 17:59:49 -0500
committerJesús <heckyel@hyperbola.info>2019-03-18 17:59:49 -0500
commitf424999041e905a01cfe3776ca0418157c6a354f (patch)
tree61f72bcc47ee27983702e8c2ad256b830582ceab
parent13dc53f43f38dc892a9f6716dae8a557beb624c9 (diff)
downloademacs-personal-f424999041e905a01cfe3776ca0418157c6a354f.tar.lz
emacs-personal-f424999041e905a01cfe3776ca0418157c6a354f.tar.xz
emacs-personal-f424999041e905a01cfe3776ca0418157c6a354f.zip
added company-mode
-rw-r--r--custom.el2
-rw-r--r--init.el1
-rw-r--r--modules/init-company.el40
3 files changed, 42 insertions, 1 deletions
diff --git a/custom.el b/custom.el
index 84cd162..da488f8 100644
--- a/custom.el
+++ b/custom.el
@@ -11,7 +11,7 @@
'(ecb-options-version "2.50")
'(package-selected-packages
(quote
- (log4j-mode yaml-mode whitespace-cleanup-mode web-mode use-package undo-tree sublime-themes sml-modeline smart-mode-line-powerline-theme shrink-path scss-mode sass-mode rainbow-mode pkgbuild-mode pip-requirements php-refactor-mode nlinum nginx-mode neotree markdown-mode less-css-mode jedi highlight-indent-guides helm gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-gutter-fringe flycheck emmet-mode ecb dokuwiki-mode diminish crystal-mode company-php apache-mode anzu all-the-icons))))
+ (neotree log4j-mode yaml-mode whitespace-cleanup-mode web-mode use-package undo-tree sublime-themes sml-modeline smart-mode-line-powerline-theme shrink-path scss-mode sass-mode rainbow-mode pkgbuild-mode pip-requirements php-refactor-mode nlinum nginx-mode markdown-mode less-css-mode jedi highlight-indent-guides helm gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-gutter-fringe flycheck emmet-mode ecb dokuwiki-mode diminish crystal-mode company-php apache-mode anzu all-the-icons))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
diff --git a/init.el b/init.el
index 834472f..6289459 100644
--- a/init.el
+++ b/init.el
@@ -46,6 +46,7 @@
(require 'init-neotree nil 'noerror)
;; Tools
(require 'init-apache nil 'noerror)
+(require 'init-company nil 'noerror)
(require 'init-flycheck nil 'noerror)
(require 'init-helm nil 'noerror)
(require 'init-log4j nil 'noerror)
diff --git a/modules/init-company.el b/modules/init-company.el
new file mode 100644
index 0000000..8434b80
--- /dev/null
+++ b/modules/init-company.el
@@ -0,0 +1,40 @@
+;;; init-company.el --- .Emacs Configuration -*- lexical-binding: t -*-
+;;; Commentary:
+;; Company es un famework de Emacs para el completado de texto.
+
+;;; CODE:
+(use-package company
+ :ensure t
+ :config
+ ;; Global
+ (setq company-idle-delay 1
+ company-minimum-prefix-length 1
+ company-show-numbers t
+ company-tooltip-limit 20)
+
+ ;; Facing
+ (unless (face-attribute 'company-tooltip :background)
+ (set-face-attribute 'company-tooltip nil :background "black" :foreground "gray40")
+ (set-face-attribute 'company-tooltip-selection nil :inherit 'company-tooltip :background "gray15")
+ (set-face-attribute 'company-preview nil :background "black")
+ (set-face-attribute 'company-preview-common nil :inherit 'company-preview :foreground "gray40")
+ (set-face-attribute 'company-scrollbar-bg nil :inherit 'company-tooltip :background "gray20")
+ (set-face-attribute 'company-scrollbar-fg nil :background "gray40"))
+
+ ;; Default backends
+ (setq company-backends '((company-files)))
+
+ ;; Activating globally
+ (global-company-mode t))
+
+(use-package company-quickhelp
+ :ensure t
+ :after company
+ :config
+ (company-quickhelp-mode 1))
+
+(provide 'init-company)
+;; Local Variables:
+;; byte-compile-warnings: (not free-vars)
+;; End:
+;;; init-company.el ends here