Changed emacs font and auto-maximized window

This commit is contained in:
Tom Willemsen 2011-04-12 12:59:51 +02:00
parent da3357de4c
commit 68d0bd4ccd
2 changed files with 11 additions and 12 deletions

View file

@ -19,3 +19,10 @@
(defun show-whitespace ()
(interactive)
(whitespace-mode t))
(defun fullscreen ()
(interactive)
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
'(2 "_NET_WM_STATE_MAXIMIZED_VERT" 0))
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
'(2 "_NET_WM_STATE_MAXIMIZED_HORZ" 0)))

View file

@ -1,5 +1,4 @@
(if (eq system-type 'gnu/linux) ; if we're running linux
(set-frame-font "-*-tamsyn-medium-*-*-*-15-*-*-*-*-80-*-*"))
(add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-9"))
(setq inhibit-startup-message t) ; don't show welcome screen
(setq require-final-newline t) ; always append a newline to a
@ -35,13 +34,6 @@
(let ((suffix (file-name-extension fname)))
(if (string-equal suffix "el")
(byte-compile-file fname))))))
(add-hook 'emacs-startup-hook
(lambda ()
(fullscreen)))