diff --git a/emacs.org b/emacs.org index a40db11..04ce178 100644 --- a/emacs.org +++ b/emacs.org @@ -23,6 +23,15 @@ Setup the builtin emacs package manager. (package-initialize) #+END_SRC +This is out of place but to catch the gui elements early. + +#+BEGIN_SRC emacs-lisp +(tool-bar-mode -1) +(scroll-bar-mode -1) +(when (not (window-system)) + (menu-bar-mode -1)) +#+END_SRC + Add in standard package archive urls. Marmalade is gone as its ssl cert expired in 2018, so don't think its even worth using. @@ -63,7 +72,6 @@ via external tangling. Not tangled for now. This configuration is using *use-package* extensively. Install it earlyso we can use it elsewhere. #+BEGIN_SRC emacs-lisp -(package-refresh-contents) (unless (package-installed-p 'use-package) (progn (package-refresh-contents) @@ -74,6 +82,10 @@ This configuration is using *use-package* extensively. Install it earlyso we can (setq use-package-verbose t) #+END_SRC +#+BEGIN_SRC emacs-lisp +(use-package auto-package-update :ensure t :defer t) +#+END_SRC + *** TODO test diminish updates :validation: Keep the mode line less cluttered with crap from modes I don't care about. @@ -104,7 +116,7 @@ Keep the mode line less cluttered with crap from modes I don't care about. Not having to start *emacs* with *--debug-init* is useful. #+BEGIN_SRC emacs-lisp -(setq debug-on-error t) +(setq-default debug-on-error t) #+END_SRC *** emacs server @@ -146,6 +158,7 @@ Like the startup screen and the echo hooey. '(inhibit-startup-screen t) '(inhibit-startup-message t) '(inhibit-startup-echo-area-message t) + '(initial-scratch-message nil) ) #+END_SRC @@ -430,24 +443,24 @@ Global key bindings. ) #+END_SRC * appearance -*** gui - -When i'm running in a terminal emacs, most of this junk isn't needed. For that matter gui counts for most. - -Basically, never show the tool bar or the scroll bar in gui or tty. In gui its ok to show the menu-bar. +*** TODO fonts setup doesn't work :broken: -Also have the scratch buffer be empty instead of have the derp message I never read anyway. +Trying something new here. #+BEGIN_SRC emacs-lisp -(tool-bar-mode -1) -(scroll-bar-mode -1) -(when (not window-system) - (menu-bar-mode -1)) -(custom-set-variables '(initial-scratch-message nil)) +(setq default-frame-alist + (append (list + '(font . "Comic Code 14") + '(min-height . 1) + '(height . 42) + '(foreground-color . "#333333") + '(background-color . "#ffffff") + '(cursor-color . "black") + '(internal-border-width . 1) + '(tool-bar-lines . 0) + '(menu-bar-lines . 0)))) #+END_SRC -*** TODO fonts setup doesn't work :broken: - List of fonts in order of preference. Set preferred font list when we're in a gui emacs session.