summaryrefslogtreecommitdiffhomepage
path: root/attic
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-08-28 16:54:59 +0100
committerjao <jao@gnu.org>2022-08-28 16:54:59 +0100
commit10b0d63aef9646e73ad52e173b28d49a5285051d (patch)
treeaea626204f1ba7ebd8d2d42d3f25cd63b8bfe8f3 /attic
parent40ec9acb94ee96e0afafcddcfb2d4b35b4623ad7 (diff)
downloadelibs-10b0d63aef9646e73ad52e173b28d49a5285051d.tar.gz
elibs-10b0d63aef9646e73ad52e173b28d49a5285051d.tar.bz2
attic
Diffstat (limited to 'attic')
-rw-r--r--attic/misc.el54
1 files changed, 0 insertions, 54 deletions
diff --git a/attic/misc.el b/attic/misc.el
index 9575909..120d152 100644
--- a/attic/misc.el
+++ b/attic/misc.el
@@ -212,60 +212,6 @@
(goto-char (point-min))
(when (re-search-forward "^[Mm]essage-[Ii][Dd]: <?\\([^><]+\\)>?" nil t)
(match-string 1))))
-;;; company
-(use-package company
- :ensure t
- :custom ((company-backends '(company-capf
- ;; company-bbdb
- company-files
- company-dabbrev
- company-keywords))
- (company-global-modes '(not slack-message-buffer-mode
- circe-channel-mode
- telega-chat-mode))
- (company-format-margin-function nil) ;; #'company-text-icons-margin
- (company-idle-delay 0.2)
- (company-lighter "")
- (company-lighter-base "")
- (company-show-numbers nil)
- (company-selection-wrap-around t)
- (company-tooltip-limit 15)
- (company-tooltip-align-annotations t)
- (company-tooltip-offset-display 'lines)) ;; 'scrollbar
-
- :config
- (defun jao-complete-at-point ()
- "Complete using company unless we're in the minibuffer."
- (interactive)
- (if (or (not company-mode) (window-minibuffer-p))
- (completion-at-point)
- (company-manual-begin)))
-
- (defun jao-company-use-in-tab ()
- (global-set-key [remap completion-at-point] #'jao-complete-at-point)
- (global-set-key [remap completion-symbol] #'jao-complete-at-point)
- (global-set-key (kbd "M-TAB") #'jao-complete-at-point))
-
- (jao-company-use-in-tab)
-
- :bind (:map company-active-map
-
- ("<tab>" . company-complete-common-or-cycle)
- ("TAB" . company-complete-common-or-cycle)
-
- ("C-h" . company-show-doc-buffer)
- ("M-." . company-show-location)
- ("C-<return>" . company-complete-selection)
- ([remap return] . company-abort)
- ("RET" . company-abort)
-
- :filter (or (not (derived-mode-p 'eshell-mode))
- (company-explicit-action-p))
- ("<return>" . company-complete-selection)
- ("RET" . company-complete-selection))
- :diminish)
-
-(global-company-mode 1)
;;; mu4e
(jao-load-path "mu4e")
(use-package mu4e