emacs: Change some stuff
This commit is contained in:
parent
a281f040cd
commit
091a42d916
1 changed files with 38 additions and 13 deletions
|
@ -1,17 +1,36 @@
|
||||||
#+TITLE: Emacs init
|
#+TITLE: Emacs init
|
||||||
#+STYLE: <link href="http://ryuslash.ninth.su/test2.css" rel="stylesheet">
|
#+OPTIONS: author:nil num:nil
|
||||||
#+OPTIONS: author:nil
|
|
||||||
#+STARTUP: showall
|
#+STARTUP: showall
|
||||||
#+LINK: yoshi-theme http://ryuslash.org/projects/yoshi-theme.html
|
#+LINK: yoshi-theme http://ryuslash.org/projects/yoshi-theme.html
|
||||||
|
|
||||||
* gui
|
* GUI
|
||||||
|
|
||||||
Remove the ~menu-bar~, ~tool-bar~ and ~scroll-bar~ from the UI since I
|
These things should happen early, so that Emacs will look the way I
|
||||||
don't use them at all.
|
want it to as quickly as is possible.
|
||||||
|
|
||||||
|
** menu-bar-mode
|
||||||
|
|
||||||
|
Disable =menu-bar-mode= since I haven't used the menu bar much ever,
|
||||||
|
even when I first started using Emacs.
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp :tangle init2.el
|
#+BEGIN_SRC emacs-lisp :tangle init2.el
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
** scroll-bar-mode
|
||||||
|
|
||||||
|
Since Emacs gives a pretty good indication of where in the buffer
|
||||||
|
I'm working I really don't need to have the scroll bar visible.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp :tangle init2.el
|
||||||
(scroll-bar-mode -1)
|
(scroll-bar-mode -1)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
** tool-bar-mode
|
||||||
|
|
||||||
|
I've never used the tool bar much, so remove it.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp :tangle init2.el
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
@ -167,12 +186,18 @@
|
||||||
(eval-after-load "flymake" '(oni:flymake-init))
|
(eval-after-load "flymake" '(oni:flymake-init))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Disable the GUI for flymake errors, add a bunch of pep8, flymake
|
Disable the GUI for flymake errors. This causes the flymake errors
|
||||||
and pyflakes messages to warning and info patterns, set the log
|
to be shown in the minibuffer.
|
||||||
file to somewhere in my home directory and set logging level to 0.
|
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp :tangle init2.el
|
#+BEGIN_SRC emacs-lisp :tangle init2.el
|
||||||
(setq flymake-gui-warnings-enabled nil)
|
(setq flymake-gui-warnings-enabled nil)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
Add a bunch of pep8, flymake and pyflakes messages to warning and
|
||||||
|
info patterns, set the log file to somewhere in my home directory
|
||||||
|
and set logging level to 0.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp :tangle init2.el
|
||||||
(setq flymake-info-line-regexp
|
(setq flymake-info-line-regexp
|
||||||
(eval-when-compile
|
(eval-when-compile
|
||||||
(regexp-opt
|
(regexp-opt
|
||||||
|
|
Loading…
Reference in a new issue