|
|
@ -513,7 +513,21 @@ Windows Theme: |
|
|
|
("<right>" . company-complete-common)) |
|
|
|
:hook |
|
|
|
(after-init . global-company-mode) |
|
|
|
(emacs-lisp-mode . my/company-elisp) |
|
|
|
(org-mode . my/company-org) |
|
|
|
:config |
|
|
|
(defun my/company-elisp () |
|
|
|
(message "set up company for elisp") |
|
|
|
(set (make-local-variable 'company-backends) |
|
|
|
'(company-yasnippet |
|
|
|
company-capf |
|
|
|
company-dabbrev-code |
|
|
|
company-files))) |
|
|
|
(defun my/company-org () |
|
|
|
(set (make-local-variable 'company-backends) |
|
|
|
'(company-capf company-files)) |
|
|
|
;; (add-hook 'completion-at-point-functions 'pcomplete-completions-at-point nil t) |
|
|
|
(message "setup company for org")) |
|
|
|
(setq company-idle-delay .2 |
|
|
|
company-minimum-prefix-length 1 |
|
|
|
company-require-match nil |
|
|
@ -541,8 +555,10 @@ Windows Theme: |
|
|
|
:ensure t |
|
|
|
:diminish |
|
|
|
:defer t |
|
|
|
:init |
|
|
|
(add-hook 'company-mode-hook 'company-box-mode)) |
|
|
|
:hook |
|
|
|
(company-mode . company-box-mode)) |
|
|
|
; :init |
|
|
|
; (add-hook 'company-mode-hook 'company-box-mode)) |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
* orgmode |
|
|
@ -557,7 +573,6 @@ Windows Theme: |
|
|
|
:diminish org-indent-mode |
|
|
|
:defer t |
|
|
|
:hook |
|
|
|
(org-mode . my/org-company) |
|
|
|
(org-mode . org-indent-mode) |
|
|
|
(org-source-mode . smartparens-mode) |
|
|
|
; :init |
|
|
@ -1052,13 +1067,7 @@ Manage projects and jump quickly between its files |
|
|
|
:END: |
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|
(use-package elisp-mode |
|
|
|
:defer t |
|
|
|
:hook |
|
|
|
(elisp-mode . my/elisp-company) |
|
|
|
:config |
|
|
|
(defun my/elisp-company () |
|
|
|
(set (make-local-variable 'company-backends) |
|
|
|
'(company-capf company-files)))) |
|
|
|
:defer t) |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
** web |
|
|
|