Emacs: Add some mode-line, minibuffer and jedi settings
This commit is contained in:
parent
b7fd0e603b
commit
161924268f
1 changed files with 39 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue