commit 62c66dccba173d2197d13b19692558a6db602af4 parent 1e58cc280c5b5fb2c45325122c0d79c6e9766de4 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Thu, 29 Oct 2020 22:53:15 +0100 emacs: fix some more stuff Former-commit-id: 0102e19be99ce9f0a08e5159bff839a296da0ae9 Diffstat:
M | emacs/emacs | | | 36 | ++++++++++++++++++++---------------- |
M | emacs/emacs.d/config.org | | | 6 | ------ |
2 files changed, 20 insertions(+), 22 deletions(-)
diff --git a/emacs/emacs b/emacs/emacs @@ -1,27 +1,31 @@ (setq org-src-tab-acts-natively t) +(when window-system + (menu-bar-mode -1) + (tool-bar-mode -1) + (scroll-bar-mode -1) + (tooltip-mode -1)) -(let ((gc-cons-percentage .6) - (gc-cons-threshold most-positive-fixnum) - (read-process-output-max (* 1024 1024)))) +(setq inhibit-startup-message t) +(setq initial-scratch-message "") -;; Disable that pesky echo message -;;(setq-default inhibit-startup-echo-area-message (user-login-name)) - -;; Set repositories +;;; Set up package (require 'package) -(setq-default - load-prefer-newer t - package-enable-at-startup nil) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t) +(package-initialize) -;; Install dependencies -(unless (package-installed-p 'use-package) +;;; Bootstrap use-package +;; Install use-package if it's not already installed. +;; use-package is used to configure the rest of the packages. +(unless (or (package-installed-p 'use-package) + (package-installed-p 'diminish)) (package-refresh-contents) - (package-install 'use-package t)) -(setq-default - use-package-always-defer t - use-package-always-ensure t) + (package-install 'use-package) + (package-install 'diminish)) + +;; From use-package README +(eval-when-compile + (require 'use-package)) ;; Tangle configuration (setq vc-follow-symlinks t) diff --git a/emacs/emacs.d/config.org b/emacs/emacs.d/config.org @@ -51,12 +51,6 @@ (load-theme 'doom-one-light t)) #+end_src - - Set the right theme based on system theme: - - #+begin_src emacs-lisp - (add-hook 'after-init-hook (lambda () (load-theme 'doom-one-light t))) - #+end_src * Packages ** emacs-which-key Minor mode for Emacs that displays the key bindings following your currently entered incomplete command (a prefix) in a popup.