Skip to content

Commit

Permalink
add font lock faces
Browse files Browse the repository at this point in the history
close #19
  • Loading branch information
braineo committed Apr 16, 2024
1 parent b92820a commit 007e376
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 3 deletions.
37 changes: 37 additions & 0 deletions core/fate-hints.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
;;; fate-hints.el --- hints -*- lexical-binding: t; -*-

;; Copyright (C) 2024 binbin

;; Author: Binbin Ye
;; Keywords: hints

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.

;;; Commentary:

;; Some useful hints / key bindings I ues less frequently and need some reminding.

;;; Code:


(defvar fate/emacs-hints
'("Start and finish recording keyboard macros: C-x (, C-x )"
"Enable edit mode in occur mode by `e` (occur-edit-mode)"
"Start wgrep in embark export by C-c C-p")
"Hints to show on dashboard footer.")



(provide 'fate-hints)
;;; fate-hints.el ends here
19 changes: 16 additions & 3 deletions core/fate-ui.el
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
;;; Code:

(require 'fate-const)
(require 'fate-hints)
(eval-when-compile
(require 'core-load-paths))

Expand Down Expand Up @@ -131,9 +132,21 @@
(use-package doom-themes
:config
(load-theme 'doom-one t)
;; new font-lock since 29.1 for tree sitter
(custom-theme-set-faces
'doom-one
'(font-lock-misc-punctuation-face ((t (:inherit font-lock-variable-name-face)))))
'doom-one
;; '(font-lock-bracket-face) ;; punctuation
;; '(font-lock-delimiter-face) ;; punctuation
'(font-lock-escape-face ((t (:inherit font-lock-keyword-face))))
;; '(font-lock-function-call-face) ;; function-name-face
'(font-lock-misc-punctuation-face ((t (:inherit font-lock-keyword-face))))
'(font-lock-number-face ((t (:inherit font-lock-constant-face))))
'(font-lock-operator-face ((t (:inherit font-lock-keyword-face))))
;; '(font-lock-property-name-face) ;; defined
'(font-lock-property-use-face ((t (:inherit font-lock-property-name-face :slant italic)))))
;; '(font-lock-punctuation-face) ;; dimmed
;; '(font-lock-regexp-face) ;; defined
;; '(font-lock-variable-use-face)) ;; variable-name

(enable-theme 'doom-one))

Expand All @@ -160,7 +173,7 @@
(dashboard-projects-switch-function 'find-file)
(dashboard-icon-type 'nerd-icons)
(dashboard-projects-backend 'projectile)
(dashboard-footer-messages '("Start and finish recording keyboard macros: c-x (, c-x )"))
(dashboard-footer-messages fate/emacs-hints)
:config
(progn
(setq dashboard-items '((recents . 10)
Expand Down

0 comments on commit 007e376

Please sign in to comment.