mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
Disable bell and avoid flyspell-errors.
This commit is contained in:
parent
98dbd3303a
commit
0baec2b264
11
init.el
11
init.el
@ -75,6 +75,7 @@ PACKAGE is installed and the current version is deleted."
|
|||||||
(setq initial-scratch-message nil ; Clean scratch buffer.
|
(setq initial-scratch-message nil ; Clean scratch buffer.
|
||||||
inhibit-startup-message t ; No splash screen please.
|
inhibit-startup-message t ; No splash screen please.
|
||||||
default-input-method "TeX" ; Use TeX when toggeling input method.
|
default-input-method "TeX" ; Use TeX when toggeling input method.
|
||||||
|
ring-bell-function 'ignore ; Quite as a mouse.
|
||||||
doc-view-continuous t ; At page edge goto next/previous.
|
doc-view-continuous t ; At page edge goto next/previous.
|
||||||
echo-keystrokes 0.1 ; Show keystrokes asap.
|
echo-keystrokes 0.1 ; Show keystrokes asap.
|
||||||
)
|
)
|
||||||
@ -260,6 +261,16 @@ PACKAGE is installed and the current version is deleted."
|
|||||||
(forward-sexp))
|
(forward-sexp))
|
||||||
ad-do-it))
|
ad-do-it))
|
||||||
|
|
||||||
|
(defadvice turn-on-flyspell (around check nil activate)
|
||||||
|
"Turns on flyspell only if a spell-checking tool is installed."
|
||||||
|
(when (executable-find ispell-program-name)
|
||||||
|
ad-do-it))
|
||||||
|
|
||||||
|
(defadvice flyspell-prog-mode (around check nil activate)
|
||||||
|
"Turns on flyspell only if a spell-checking tool is installed."
|
||||||
|
(when (executable-find ispell-program-name)
|
||||||
|
ad-do-it))
|
||||||
|
|
||||||
(dolist (mode '(slime-repl-mode inferior-lisp-mode inferior-scheme-mode))
|
(dolist (mode '(slime-repl-mode inferior-lisp-mode inferior-scheme-mode))
|
||||||
(add-to-list 'pretty-lambda-auto-modes mode))
|
(add-to-list 'pretty-lambda-auto-modes mode))
|
||||||
|
|
||||||
|
19
init.org
19
init.org
@ -143,6 +143,7 @@
|
|||||||
(setq initial-scratch-message nil ; Clean scratch buffer.
|
(setq initial-scratch-message nil ; Clean scratch buffer.
|
||||||
inhibit-startup-message t ; No splash screen please.
|
inhibit-startup-message t ; No splash screen please.
|
||||||
default-input-method "TeX" ; Use TeX when toggeling input method.
|
default-input-method "TeX" ; Use TeX when toggeling input method.
|
||||||
|
ring-bell-function 'ignore ; Quite as a mouse.
|
||||||
doc-view-continuous t ; At page edge goto next/previous.
|
doc-view-continuous t ; At page edge goto next/previous.
|
||||||
echo-keystrokes 0.1 ; Show keystrokes asap.
|
echo-keystrokes 0.1 ; Show keystrokes asap.
|
||||||
)
|
)
|
||||||
@ -531,6 +532,24 @@
|
|||||||
ad-do-it))
|
ad-do-it))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
=Flyspell= signals an error if there is no spell-checking tool is
|
||||||
|
installed. We can advice =turn-on=flyspell= and =flyspell-prog-mode= to
|
||||||
|
only try to enable =flyspell= if a spell-checking tool is avalible.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp :tangle yes
|
||||||
|
(defadvice turn-on-flyspell (around check nil activate)
|
||||||
|
"Turns on flyspell only if a spell-checking tool is installed."
|
||||||
|
(when (executable-find ispell-program-name)
|
||||||
|
ad-do-it))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp :tangle yes
|
||||||
|
(defadvice flyspell-prog-mode (around check nil activate)
|
||||||
|
"Turns on flyspell only if a spell-checking tool is installed."
|
||||||
|
(when (executable-find ispell-program-name)
|
||||||
|
ad-do-it))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
* Language mode specific
|
* Language mode specific
|
||||||
** Lisp
|
** Lisp
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user