(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)
(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))
(desktop-save-mode 1)
(setq-default frame-title-format '("%b"))
;;(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)
(use-package doom-themes
:config (load-theme 'doom-nord t))
(when window-system
(menu-bar-mode 1)
(scroll-bar-mode -1)
(tool-bar-mode -1)
(tooltip-mode -1)
(setq-default mode-line-format nil))
(setq inhibit-startup-message t)
(setq org-startup-indented t)
(global-visual-line-mode t)
(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)))
(use-package rainbow-delimiters
:ensure t
:hook (prog-mode . rainbow-delimiters-mode))
(use-package org-bullets
:ensure t
:hook (org-mode . org-bullets-mode))
(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))