Marc Pohling
6 years ago
2 changed files with 241 additions and 48 deletions
Unified View
Diff Options
-
196config.org
-
93init.el
@ -1,49 +1,50 @@ |
|||||
;;; init --- Summary |
|
||||
;;; Commentary: |
|
||||
|
;; Garbage collection threshold |
||||
|
;; higher means less interuptions |
||||
|
(setq gc-cons-threshold 400000000) |
||||
|
|
||||
;;; Code: |
|
||||
|
|
||||
|
;; 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 "") |
||||
|
|
||||
|
;; Setup package |
||||
|
(require 'package) |
||||
|
(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) |
(package-initialize) |
||||
(setq shell-file-name "/bin/bash") ;;test für python und jedi |
|
||||
(setq debug-on-error t) ;; Debug-Meldung, wenn Fehler durch init.el auftritt |
|
||||
|
|
||||
(add-to-list 'load-path (concat user-emacs-directory "elisp/")) |
|
||||
|
|
||||
(require 'base) |
|
||||
(require 'base-theme) |
|
||||
(require 'base-backup) |
|
||||
(require 'base-functions) |
|
||||
(require 'base-global-keys) |
|
||||
|
|
||||
;(require 'plugin-evil) ; vi-mode für emacs |
|
||||
(require 'plugin-which-key) |
|
||||
(require 'plugin-counsel) |
|
||||
(require 'plugin-org) |
|
||||
(require 'plugin-company-mode) |
|
||||
(require 'plugin-flycheck) ; Syntaxcheck |
|
||||
(require 'plugin-smartparens) |
|
||||
(require 'plugin-yasnippet) |
|
||||
;(require 'plugin-neotree) |
|
||||
(require 'plugin-projectile) |
|
||||
(require 'plugin-treemacs) ;nach projectile, da treemacs auch treemacs-projectile lädt |
|
||||
(require 'plugin-spaceline) |
|
||||
(require 'plugin-markdown) |
|
||||
(require 'plugin-magit) |
|
||||
(require 'lang-python) |
|
||||
(require 'lang-latex) |
|
||||
|
|
||||
;;; init ends here |
|
||||
(custom-set-variables |
|
||||
;; custom-set-variables was added by Custom. |
|
||||
;; If you edit it by hand, you could mess it up, so be careful. |
|
||||
;; Your init file should contain only one such instance. |
|
||||
;; If there is more than one, they won't work right. |
|
||||
'(package-selected-packages |
|
||||
(quote |
|
||||
(pdf-tools yasnippet which-key use-package tablist smartparens projectile org-journal neotree material-theme magit flycheck counsel company-statistics company-quickhelp company-jedi company-dict auto-virtualenvwrapper)))) |
|
||||
(custom-set-faces |
|
||||
;; custom-set-faces was added by Custom. |
|
||||
;; If you edit it by hand, you could mess it up, so be careful. |
|
||||
;; Your init file should contain only one such instance. |
|
||||
;; If there is more than one, they won't work right. |
|
||||
) |
|
||||
|
|
||||
|
;; Bootstrap use-package |
||||
|
;; Install use-package if it's not already installed |
||||
|
;; use-package is used to configure the rest of the packages |
||||
|
(unless (package-installed-p 'use-package) |
||||
|
(package-refresh-contents) |
||||
|
(package-install 'use-package) |
||||
|
) |
||||
|
|
||||
|
;; From use-package README |
||||
|
(eval-when-compile |
||||
|
(require 'use-package)) |
||||
|
(require 'diminish) |
||||
|
;;use-package needs this |
||||
|
(require 'bind-key) |
||||
|
|
||||
|
;; Load the config |
||||
|
(org-babel-load-file (concat user-emacs-directory "config.org")) |
||||
|
|
||||
|
(setq gc-cons-threshold 800000) |