Emacs: Add some mode-line, minibuffer and jedi settings

This commit is contained in:
Tom Willemsen 2013-03-22 13:36:15 +01:00
parent b7fd0e603b
commit 161924268f

View file

@ -552,3 +552,42 @@ functionality, plus more.
#+BEGIN_SRC emacs-lisp
(global-set-key (kbd "M-n") 'idomenu)
#+END_SRC
* minibuffer
A new feature in Emacs 24.3 can shorten ~(default ...)~ to ~[...]~ when
prompting for something. The =minibuffer-eldef-shorten-default= should
be set before enabling the =minibuffer-electric-default-mode=.
#+BEGIN_SRC emacs-lisp
(setq minibuffer-eldef-shorten-default t)
(minibuffer-electric-default-mode)
#+END_SRC
* mode-line
Don't show any default help messages, if no help message was
specified, just leave the echo area empty.
#+BEGIN_SRC emacs-lisp
(setq mode-line-default-help-echo "")
#+END_SRC
* jedi
Start jedi when =python-mode= is started.
#+BEGIN_SRC emacs-lisp
(eval-after-load "jedi" '(setcar jedi:server-command "python2"))
(add-hook 'python-mode-hook 'jedi:setup)
#+END_SRC
Show argument lists and such in the echo area.
#+BEGIN_SRC emacs-lisp
(setq jedi:tooltip-method nil)
#+END_SRC
# Local Variables:
# eval: (flyspell-mode 1)
# End: