From b6bc4e1cfb3e9b06dc91c6785d39dcbedf9591d4 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sat, 12 Nov 2022 20:44:43 +0000 Subject: [PATCH] feat: rainbow-mode - colourise colour codes --- lisp/editor.el | 12 ++++++++---- lisp/interface.el | 2 +- lisp/org-mode.el | 6 +++--- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/lisp/editor.el b/lisp/editor.el index a51dfca..3b3f2fd 100644 --- a/lisp/editor.el +++ b/lisp/editor.el @@ -3,10 +3,10 @@ ;; Quit input dialogues after pressing escape once (global-set-key (kbd "") 'keyboard-escape-quit) -;;; Line Wrapping +;; Line Wrapping (global-visual-line-mode 1) ; Prevent wrapping of words -;;; evil - A Vi Layer inside of Emacs +;; evil - A Vi Layer inside of Emacs (use-package evil :custom (evil-want-keybinding nil) ; Make room for evil-collection @@ -40,7 +40,7 @@ (setq auto-save-file-name-transforms `((".*" ,temporary-file-directory t))) -;;; Themes +;; Themes ;; Customize doom-themes (setq doom-themes-enable-bold t doom-themes-enable-italic t) @@ -50,7 +50,11 @@ ;; Set theme to doom-tokyo-night, Dianicemacs' default (load-theme 'doom-tokyo-night t) -;;; Keybinds +;; rainbow-mode - Colourful colour codes! +(use-package rainbow-mode + :hook (prog-mode . rainbow-mode)) + +;; Keybinds ;; Enable which-key (which-key-mode) (setq which-key-idle-delay 0.1) ; Make the popup appear faster diff --git a/lisp/interface.el b/lisp/interface.el index 9d79fb6..16be1d5 100644 --- a/lisp/interface.el +++ b/lisp/interface.el @@ -29,7 +29,7 @@ ;; which-key - a popup which displays available keybindings (use-package which-key) -;;; Themes +;; Themes ;; Install the Doom Emacs theme megapack. (use-package doom-themes) diff --git a/lisp/org-mode.el b/lisp/org-mode.el index 382cb5d..590d163 100644 --- a/lisp/org-mode.el +++ b/lisp/org-mode.el @@ -1,6 +1,6 @@ ;; This file contains configuration for Emacs' org-mode -;;; org-mode ;; org-superstar +;; org-mode ;; org-superstar (use-package org-superstar :config ;; Change org-mode's heading bullets @@ -40,7 +40,7 @@ ;; Enable org-superstar-mode in org-mode files (add-hook 'org-mode-hook 'org-superstar-mode) -;;; org-roam - A plain-text personal knowledge management system +;; org-roam - A plain-text personal knowledge management system (use-package org-roam :custom (org-directory file-truename "Org/") ; Set the folder used by org-mode @@ -54,7 +54,7 @@ :if-new (file+head "${slug}.org" "#+title: ${title}\n#+date: %U\n#+author: %n\n") :unnarrowed t))) -;;; Keybinds for org-mode +;; Keybinds for org-mode ;; evil-org - Some nice keybinds for org-mode and org-agenda (use-package evil-org :after org