From eb25b133fae6796358d884950ee1d334c721a591 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Thu, 15 Apr 2021 23:08:05 -0500 Subject: [PATCH] GNU Emacs config from video: Leaving Doom For GNU Emacs --- .emacs.d/config.org | 24 ++++++++++++++++-------- .emacs.d/init.el | 14 +------------- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/.emacs.d/config.org b/.emacs.d/config.org index 99b80b9..6ec034b 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -137,11 +137,11 @@ Emacs Dashboard is an extensible startup screen showing you recent files, bookma ;;(setq dashboard-startup-banner 'logo) ;; use standard emacs logo as banner (setq dashboard-startup-banner "/home/dt/.emacs.d/emacs-dash.png") ;; use custom image as banner (setq dashboard-center-content nil) ;; set to 't' for centered content - (setq dashboard-items '((recents . 10) + (setq dashboard-items '((recents . 5) (agenda . 5 ) - (bookmarks . 5) - (projects . 5) - (registers . 5))) + (bookmarks . 3) + (projects . 3) + (registers . 3))) :config (dashboard-setup-startup-hook) (dashboard-modify-heading-icons '((recents . "file-text") @@ -227,20 +227,28 @@ Defining our fonts. ** Setting The Font Face #+begin_src emacs-lisp (set-face-attribute 'default nil - :font "SauceCodePro Nerd Font 11" + :font "Mononoki Nerd Font 12" :weight 'medium) (set-face-attribute 'variable-pitch nil - :font "Ubuntu Nerd Font 11" + :font "Ubuntu Nerd Font 12" :weight 'medium) (set-face-attribute 'fixed-pitch nil - :font "SauceCodePro Nerd Font 11" + :font "Mononoki Nerd Font 12" :weight 'medium) +;; Makes commented text italics (working in emacsclient but not emacs) +(set-face-attribute 'font-lock-comment-face nil + :slant 'italic) +;; Makes keywords italics (working in emacsclient but not emacs) +(set-face-attribute 'font-lock-keyword-face nil + :slant 'italic) ;; Uncomment the following line if line spacing needs adjusting. ;; (setq-default line-spacing 0.10) ;; Needed if using emacsclient. Otherwise, your fonts will be smaller than expected. -(add-to-list 'default-frame-alist '(font . "SauceCodePro Nerd Font 11")) +(add-to-list 'default-frame-alist '(font . "Mononoki Nerd Font 12")) +;; changes certain keywords to symbols, such as lamda! +(setq global-prettify-symbols-mode t) #+end_src ** Zooming In and Out diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 157666a..67a3b13 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -2,16 +2,4 @@ (expand-file-name "config.org" user-emacs-directory)) -(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 - '(org-bullets haskell-mode vterm eshell-syntax-highlighting toc-org magit-todos magit-lfs magit ivy-posframe ivy-rich counsel peep-dired dired-open projectile dashboard general doom-modeline which-key evil-collection evil use-package))) -(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. - ) +