mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
Removed everything related to auto-complete mode
This commit is contained in:
parent
1f46641585
commit
d3e428d599
33
init.org
33
init.org
@ -156,11 +156,8 @@
|
|||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(let* ((packages
|
(let* ((packages
|
||||||
'(ac-geiser ; Auto-complete backend for geiser
|
'(ace-jump-mode ; quick cursor location minor mode
|
||||||
ac-slime ; An auto-complete source using slime completions
|
|
||||||
ace-jump-mode ; quick cursor location minor mode
|
|
||||||
auto-compile ; automatically compile Emacs Lisp libraries
|
auto-compile ; automatically compile Emacs Lisp libraries
|
||||||
auto-complete ; auto completion
|
|
||||||
centered-window-mode ; Center the text when there's only one window
|
centered-window-mode ; Center the text when there's only one window
|
||||||
elscreen ; window session manager
|
elscreen ; window session manager
|
||||||
expand-region ; Increase selected region by semantic units
|
expand-region ; Increase selected region by semantic units
|
||||||
@ -223,7 +220,6 @@
|
|||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(require 'idle-require) ; Need in order to use idle-require
|
(require 'idle-require) ; Need in order to use idle-require
|
||||||
(require 'auto-complete-config) ; a configuration for auto-complete-mode
|
|
||||||
|
|
||||||
(dolist (feature
|
(dolist (feature
|
||||||
'(auto-compile ; auto-compile .el files
|
'(auto-compile ; auto-compile .el files
|
||||||
@ -331,13 +327,6 @@
|
|||||||
(put 'narrow-to-region 'disabled nil)
|
(put 'narrow-to-region 'disabled nil)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Call =auto-complete= default configuration, which enables =auto-complete=
|
|
||||||
globally.
|
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
(eval-after-load 'auto-complete-config `(ac-config-default))
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Automaticly revert =doc-view=-buffers when the file changes on disk.
|
Automaticly revert =doc-view=-buffers when the file changes on disk.
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
@ -586,13 +575,10 @@
|
|||||||
|
|
||||||
To use flyspell for programming there is =flyspell-prog-mode=, that only
|
To use flyspell for programming there is =flyspell-prog-mode=, that only
|
||||||
enables spell checking for comments and strings. We can enable it for all
|
enables spell checking for comments and strings. We can enable it for all
|
||||||
programming modes using the =prog-mode-hook=. Flyspell interferes with
|
programming modes using the =prog-mode-hook=.
|
||||||
auto-complete mode, but there is a workaround provided by auto complete.
|
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(add-hook 'prog-mode-hook 'flyspell-prog-mode)
|
(add-hook 'prog-mode-hook 'flyspell-prog-mode)
|
||||||
(eval-after-load 'auto-complete
|
|
||||||
'(ac-flyspell-workaround))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
When working with several languages, we should be able to cycle through
|
When working with several languages, we should be able to cycle through
|
||||||
@ -927,17 +913,6 @@
|
|||||||
(setq inferior-lisp-program "sbcl")
|
(setq inferior-lisp-program "sbcl")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
To improve auto completion for Common Lisp editing we can use =ac-slime=
|
|
||||||
which uses slime completions as a source.
|
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
(add-hook 'slime-mode-hook 'set-up-slime-ac)
|
|
||||||
(add-hook 'slime-repl-mode-hook 'set-up-slime-ac)
|
|
||||||
|
|
||||||
(eval-after-load "auto-complete"
|
|
||||||
'(add-to-list 'ac-modes 'slime-repl-mode))
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
More sensible =loop= indentation, borrowed from [[https://github.com/simenheg][simenheg]].
|
More sensible =loop= indentation, borrowed from [[https://github.com/simenheg][simenheg]].
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
@ -957,10 +932,6 @@
|
|||||||
and specify which scheme-interpreter we prefer.
|
and specify which scheme-interpreter we prefer.
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(add-hook 'geiser-mode-hook 'ac-geiser-setup)
|
|
||||||
(add-hook 'geiser-repl-mode-hook 'ac-geiser-setup)
|
|
||||||
(eval-after-load "auto-complete"
|
|
||||||
'(add-to-list 'ac-modes 'geiser-repl-mode))
|
|
||||||
(eval-after-load "geiser"
|
(eval-after-load "geiser"
|
||||||
'(setq geiser-active-implementations '(racket)))
|
'(setq geiser-active-implementations '(racket)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
Loading…
Reference in New Issue
Block a user