mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
45 lines
1.4 KiB
EmacsLisp
45 lines
1.4 KiB
EmacsLisp
;;; Begin initialization
|
|
;; Turn off mouse interface early in startup to avoid momentary display
|
|
(when window-system
|
|
(menu-bar-mode -1)
|
|
(tool-bar-mode -1)
|
|
(scroll-bar-mode -1)
|
|
(tooltip-mode -1))
|
|
|
|
(setq inhibit-startup-message t)
|
|
(setq initial-scratch-message "")
|
|
|
|
;;; Set up package
|
|
(require 'package)
|
|
;; Install into separate package dirs for each Emacs version, to prevent bytecode incompatibility
|
|
(let ((versioned-package-dir
|
|
(expand-file-name (format "elpa-%s.%s" emacs-major-version emacs-minor-version)
|
|
user-emacs-directory)))
|
|
(setq package-user-dir versioned-package-dir))
|
|
|
|
(add-to-list 'package-archives
|
|
'("melpa" . "http://melpa.org/packages/") t)
|
|
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
|
|
(when (boundp 'package-pinned-packages)
|
|
(setq package-pinned-packages
|
|
'((org-plus-contrib . "org"))))
|
|
(package-initialize)
|
|
|
|
;;; 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)
|
|
(package-install 'diminish))
|
|
|
|
;; From use-package README
|
|
(eval-when-compile
|
|
(require 'use-package))
|
|
(require 'diminish) ;; if you use :diminish
|
|
(require 'bind-key)
|
|
|
|
;;; Load the config
|
|
(org-babel-load-file (concat user-emacs-directory "emacs.org"))
|