Load emacs config from org file

This commit is contained in:
RealStickman 2022-11-30 19:20:03 +01:00
parent 416e851f16
commit 12852fee74
3 changed files with 74 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
settings.el

View File

@ -0,0 +1,3 @@
(require 'org)
(org-babel-load-file
(expand-file-name "GitProjects/emacs/settings.org"))

70
settings.org Normal file
View File

@ -0,0 +1,70 @@
#+title: Settings
* Various
** Disable startup screen
#+BEGIN_SRC emacs-lisp
(setq inhibit-startup-screen t)
#+END_SRC
** Disable menu bar
#+BEGIN_SRC emacs-lisp
(menu-bar-mode -1)
#+END_SRC
** Other
#+BEGIN_SRC emacs-lisp
(scroll-bar-mode -1) ; Disable visible scrollbar
(tool-bar-mode -1) ; Disable the toolbar
(tooltip-mode -1) ; Disable tooltips
(set-fringe-mode 10) ; Give some breathing room
;; Make ESC quit prompts
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
;; Initialize package sources
(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")
("elpa" . "https://elpa.gnu.org/packages/")))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
;; Initialize use-package on non-Linux platforms
(unless (package-installed-p 'use-package)
(package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure t)
(use-package command-log-mode)
(use-package ivy
:diminish
:bind (("C-s" . swiper)
:map ivy-minibuffer-map
("TAB" . ivy-alt-done)
("C-l" . ivy-alt-done)
("C-j" . ivy-next-line)
("C-k" . ivy-previous-line)
:map ivy-switch-buffer-map
("C-k" . ivy-previous-line)
("C-l" . ivy-done)
("C-d" . ivy-switch-buffer-kill)
:map ivy-reverse-i-search-map
("C-k" . ivy-previous-line)
("C-d" . ivy-reverse-i-search-kill))
:config
(ivy-mode 1))
(use-package doom-modeline
:ensure t
:init (doom-modeline-mode 1)
:custom ((doom-modeline-height 15)))
#+END_SRC
** Fonts config
#+BEGIN_SRC emacs-lisp
;(set-face-attribute 'default nil :font "monospace" :height 140)
#+END_SRC
** Load theme
#+BEGIN_SRC emacs-lisp
;(load-theme 'doom-palenight)
#+END_SRC