Move Company to Completion section
This commit is contained in:
parent
60297d870a
commit
053a818622
99
init.org
99
init.org
|
@ -2065,6 +2065,13 @@ PR ideas
|
|||
:PROPERTIES:
|
||||
:CREATED: 2022-01-13T20:39:41+0530
|
||||
:END:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package emacs
|
||||
:config
|
||||
(setq tags-add-tables nil
|
||||
completion-styles '(initials partial-completion basic emacs22)))
|
||||
#+END_SRC
|
||||
|
||||
** counsel
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package counsel
|
||||
|
@ -2133,6 +2140,47 @@ PR ideas
|
|||
"C-M-r" 'flex-isearch-backward)
|
||||
#+END_SRC
|
||||
|
||||
** company
|
||||
:PROPERTIES:
|
||||
:CREATED: 2022-01-05T20:16:03+0530
|
||||
:END:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package company
|
||||
:diminish company-mode
|
||||
:hook (prog-mode . company-mode)
|
||||
(special-mode . company-mode)
|
||||
(comint-mode . company-mode)
|
||||
:bind ;; ("TAB" . company-indent-or-complete-common)
|
||||
(:map emacs-lisp-mode-map
|
||||
("TAB" . company-indent-or-complete-common)
|
||||
("C-i" . company-indent-or-complete-common))
|
||||
(:map company-active-map
|
||||
("C-c" . company-select-previous)
|
||||
("C-r" . company-select-next)
|
||||
("C-h" . backward-delete-char)
|
||||
("C-w" . backward-kill-word)
|
||||
;; the following is necessary to shadow the window-switching
|
||||
;; keybindings on the same keys
|
||||
("C-1" . company-complete-quick-access)
|
||||
("C-2" . company-complete-quick-access)
|
||||
("C-3" . company-complete-quick-access)
|
||||
("C-4" . company-complete-quick-access)
|
||||
("C-5" . company-complete-quick-access)
|
||||
("C-6" . company-complete-quick-access)
|
||||
("C-7" . company-complete-quick-access)
|
||||
("C-8" . company-complete-quick-access)
|
||||
("C-9" . company-complete-quick-access)
|
||||
("C-0" . company-complete-quick-access))
|
||||
;; Error (use-package): company/:catch: Symbol’s value as variable is void: c-mode-map
|
||||
;; (:map c-mode-map
|
||||
;; ("TAB" . company-indent-or-complete-common)
|
||||
;; ("C-i" . company-indent-or-complete-common))
|
||||
:config
|
||||
(add-to-list 'company-backends 'company-irony)
|
||||
(setq company-show-quick-access t)
|
||||
(customize-set-variable company-quick-access-modifier 'control))
|
||||
#+END_SRC
|
||||
|
||||
** company-emoji
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package company-emoji
|
||||
|
@ -3901,62 +3949,15 @@ pjb suggested a different approach [[http://paste.lisp.org/display/10157][here]]
|
|||
:hook (prog-mode . rainbow-delimiters-mode))
|
||||
#+END_SRC
|
||||
|
||||
*** company
|
||||
*** feature-mode
|
||||
:PROPERTIES:
|
||||
:CREATED: 2022-01-05T20:16:03+0530
|
||||
:CREATED: 2022-01-14T01:31:08+0530
|
||||
:END:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package company
|
||||
:diminish company-mode
|
||||
:hook (prog-mode . company-mode)
|
||||
(special-mode . company-mode)
|
||||
(comint-mode . company-mode)
|
||||
:bind ;; ("TAB" . company-indent-or-complete-common)
|
||||
(:map emacs-lisp-mode-map
|
||||
("TAB" . company-indent-or-complete-common)
|
||||
("C-i" . company-indent-or-complete-common))
|
||||
(:map company-active-map
|
||||
("C-c" . company-select-previous)
|
||||
("C-r" . company-select-next)
|
||||
("C-h" . backward-delete-char)
|
||||
("C-w" . backward-kill-word)
|
||||
;; the following is necessary to shadow the window-switching
|
||||
;; keybindings on the same keys
|
||||
("C-1" . company-complete-quick-access)
|
||||
("C-2" . company-complete-quick-access)
|
||||
("C-3" . company-complete-quick-access)
|
||||
("C-4" . company-complete-quick-access)
|
||||
("C-5" . company-complete-quick-access)
|
||||
("C-6" . company-complete-quick-access)
|
||||
("C-7" . company-complete-quick-access)
|
||||
("C-8" . company-complete-quick-access)
|
||||
("C-9" . company-complete-quick-access)
|
||||
("C-0" . company-complete-quick-access))
|
||||
;; Error (use-package): company/:catch: Symbol’s value as variable is void: c-mode-map
|
||||
;; (:map c-mode-map
|
||||
;; ("TAB" . company-indent-or-complete-common)
|
||||
;; ("C-i" . company-indent-or-complete-common))
|
||||
:config
|
||||
(add-to-list 'company-backends 'company-irony)
|
||||
(setq company-show-quick-access t
|
||||
tags-add-tables nil
|
||||
completion-styles '(initials partial-completion basic emacs22))
|
||||
(customize-set-variable company-quick-access-modifier 'control))
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package feature-mode
|
||||
:mode "\\.feature$")
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(defun contrapunctus-run-makem ()
|
||||
(interactive)
|
||||
(cd (locate-dominating-file default-directory "makem.sh"))
|
||||
(save-selected-window
|
||||
(compile "./makem.sh compile lint test-ert")))
|
||||
#+END_SRC
|
||||
|
||||
*** paredit :disabled:
|
||||
:PROPERTIES:
|
||||
:CREATED: 2022-01-13T23:04:41+0530
|
||||
|
|
Loading…
Reference in New Issue