From 4c8415e4fecd5c824977614e2d20ff1d02ced311 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 6 Jan 2020 10:20:20 +0100 Subject: [PATCH] Move ui config to another file --- +org.el | 3 +++ +ui.el | 18 ++++++++++++++++++ config.el | 19 +++++++------------ init.el | 2 +- 4 files changed, 29 insertions(+), 13 deletions(-) create mode 100644 +ui.el diff --git a/+org.el b/+org.el index e59f7bc..9313845 100644 --- a/+org.el +++ b/+org.el @@ -33,3 +33,6 @@ (setq org-startup-with-inline-images t) ;; Add timestamp to DONE task (setq org-log-done 'time) +;; Print babel results to the buffer +(setq org-babel-default-header-args '((:session . "none") (:results . "output") (:exports . "code") + (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no"))) diff --git a/+ui.el b/+ui.el new file mode 100644 index 0000000..0fbc00c --- /dev/null +++ b/+ui.el @@ -0,0 +1,18 @@ +;;; ~/.doom.d/+ui.el -*- lexical-binding: t; -*- +;; Appearance settings +;; Set Font and theme +(setq doom-font (font-spec :family "Iosevka Medium" :size 16) + doom-theme 'doom-nord) +;; Start maximized +(add-to-list 'default-frame-alist '(fullscreen . maximized)) +;; Display Magit status in fullscreen +(after! magit + (setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1)) +;; Match pdf-tools colors to the theme +(after! pdf-tools + (setq pdf-view-midnight-colors '("#ECEFF4" . "#2E3440")) + (add-hook 'pdf-tools-enabled-hook 'pdf-view-midnight-minor-mode)) +;; Customize modeline +(setq doom-modeline-major-mode-icon t + doom-modeline-persp-name t + doom-modeline-buffer-encoding nil) diff --git a/config.el b/config.el index 00cc169..398e518 100644 --- a/config.el +++ b/config.el @@ -2,11 +2,8 @@ ;; Place your private configuration here ;; -;; Set Font and theme -(setq doom-font (font-spec :family "Iosevka Medium" :size 16) - doom-theme 'doom-nord) -;; Start maximized -(add-to-list 'default-frame-alist '(fullscreen . maximized)) +;; Load appearance configuration +(load! "+ui") ;; Set projects directories (setq projectile-project-search-path '("~/Sync/Projects")) ; Auto cleanup recentf @@ -19,9 +16,6 @@ (setq magit-repository-directories '(("~/Projects" . 2) ("~/.dotfiles" . 0) ("~/.doom.d" . 0))) -;; Display Magit status in fullscreen -(after! magit - (setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1)) ;; Load org configuration (after! org (load! "+org")) ;; Disable line numbers and completion in Markdown @@ -34,7 +28,8 @@ (revert-buffer :ignore-auto :noconfirm)) ;; Select target in Makefile compilation as default (map! :leader :n "c c" #'makefile-executor-execute-project-target) -;; Match pdf-tools colors to the theme -(after! pdf-tools - (setq pdf-view-midnight-colors '("#ECEFF4" . "#2E3440")) - (add-hook 'pdf-tools-enabled-hook 'pdf-view-midnight-minor-mode)) +;; Choose docsets for Python +(after! python + (set-docsets! 'python-mode "Python 3" "NumPy" "SciPy" "Pandas" "SQLAlchemy")) +;; Align columns in CSV mode +(add-hook 'csv-mode-hook 'csv-align-mode) diff --git a/init.el b/init.el index 6b859db..d7b1683 100644 --- a/init.el +++ b/init.el @@ -117,7 +117,7 @@ ;;(haskell +dante) ; a language that's lazier than I am ;;hy ; readability of scheme w/ speed of python ;;idris ; - (java +meghanada) ; the poster child for carpal tunnel syndrome + ;;(java +meghanada) ; the poster child for carpal tunnel syndrome ;;javascript ; all(hope(abandon(ye(who(enter(here)))))) ;;julia ; a better, faster MATLAB ;;kotlin ; a better, slicker Java(Script)