Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

sjarbs/emacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Package Manager

(setq package-archives '(("melpa" . "http://melpa.org/packages/")
                         ("org"   . "http://orgmode.org/elpa/")))
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))
(setq-default use-package-always-ensure t)

Better Defaults

Auto-save && Backup files

(use-package super-save
  :config
  (super-save-mode +1)
  :init
  (setq super-save-auto-save-when-idle t)
  (setq auto-save-default nil)
  (setq make-backup-files nil))

Save/Restore session

(desktop-save-mode 1)

Frame title format

(setq-default frame-title-format '("%b"))

Appearance

Fonts

;;(set-face-attribute 'default nil :font "Operator Mono")
;;(set-fontset-font t nil "Symbols Nerd Font" nil 'append)
;;(set-fontset-font t nil "Noto Color Emoji" nil 'append)

Theme

(use-package doom-themes
 :config (load-theme 'doom-nord t))

Window

(when window-system
  (menu-bar-mode 1)
  (scroll-bar-mode -1)
  (tool-bar-mode -1)
  (tooltip-mode -1)
  (setq-default mode-line-format nil))

Defaults

(setq inhibit-startup-message t)
(setq org-startup-indented t)
(global-visual-line-mode t)

Keybindings

(cua-mode t) ;; C-x: Cut; C-c: Copy; C-v: Paste
(global-set-key (kbd "C-s") 'save-buffer)
(global-set-key (kbd "C-S-s") 'save-some-buffers)
(global-set-key (kbd "C-a") 'mark-whole-buffer)
(global-set-key (kbd "C-o") 'find-file)
(use-package undo-fu
  :bind (("C-z" . undo-fu-only-undo)
         ("C-y" . undo-fu-only-redo)))

Org-mode

Packages

(use-package rainbow-delimiters
  :ensure t
  :hook (prog-mode . rainbow-delimiters-mode))
(use-package org-bullets
  :ensure t
  :hook (org-mode . org-bullets-mode))

Cross out done items.

(defun my/modify-org-done-face ()
  (setq org-fontify-done-headline t)
  (set-face-attribute 'org-done nil :strike-through t)
  (set-face-attribute 'org-headline-done nil
                      :strike-through t
                      :foreground "light gray"))

(eval-after-load "org"
  (add-hook 'org-add-hook 'my/modify-org-done-face))

To Do

Test

Organize

Switch Night/Day theme

C-s -> org-babel-load-file .emacs.d/config.org

Font + Emojis

Reload config.org on save