forked from org-roam/org-roam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(internal): move faces into own file (org-roam#987)
- Loading branch information
1 parent
6345d0c
commit 0443351
Showing
2 changed files
with
111 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
;;; org-roam-faces.el --- Face definitions -*- coding: utf-8; lexical-binding: t; -*- | ||
|
||
;; Copyright © 2020 Jethro Kuan <[email protected]> | ||
|
||
;; Author: Jethro Kuan <[email protected]> | ||
;; URL: https://github.com/org-roam/org-roam | ||
;; Keywords: org-mode, roam, convenience | ||
;; Version: 1.2.1 | ||
;; Package-Requires: ((emacs "26.1")) | ||
|
||
;; This file is NOT part of GNU Emacs. | ||
|
||
;; 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, 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 GNU Emacs; see the file COPYING. If not, write to the | ||
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
;; Boston, MA 02110-1301, USA. | ||
|
||
;;; Commentary: | ||
|
||
;; This file contains the face definitions for Org-roam. | ||
|
||
;;; Code: | ||
|
||
(defgroup org-roam-faces nil | ||
"Faces used by Org-roam." | ||
:group 'org-roam | ||
:group 'faces) | ||
|
||
;;; Definitions | ||
(defface org-roam-link | ||
'((t :inherit org-link)) | ||
"Face for Org-roam links." | ||
:group 'org-roam-faces) | ||
|
||
(defface org-roam-link-current | ||
'((t :inherit org-link)) | ||
"Face for Org-roam links pointing to the current buffer." | ||
:group 'org-roam-faces) | ||
|
||
(defface org-roam-link-invalid | ||
'((t :inherit (error org-link))) | ||
"Face for Org-roam links that are not valid. | ||
This face is used for links without a destination." | ||
:group 'org-roam-faces) | ||
|
||
(defface org-roam-link-shielded | ||
'((t :inherit (warning org-link))) | ||
"Face for Org-roam links that are shielded. | ||
This face is used on the region target by `org-roam-insertion' | ||
during an `org-roam-capture'." | ||
:group 'org-roam-faces) | ||
|
||
;;; _ | ||
|
||
(provide 'org-roam-faces) | ||
|
||
;;; org-roam-faces.el ends here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters