Skip to content

Commit a76f033

Browse files
committed
Add core.
1 parent 7f5af92 commit a76f033

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

ivy-file-preview.el

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
;;; ivy-file-preview.el --- Preview the current ivy file selection -*- lexical-binding: t; -*-
2+
3+
;; Copyright (C) 2020 Shen, Jen-Chieh
4+
;; Created date 2020-09-07 23:42:35
5+
6+
;; Author: Shen, Jen-Chieh <[email protected]>
7+
;; Description: Preview the current ivy file selection.
8+
;; Keyword: file ivy swiper preview select selection
9+
;; Version: 0.0.1
10+
;; Package-Requires: ((emacs "24.3") (ivy "0.8.0"))
11+
;; URL: https://github.com/jcs090218/ivy-file-preview
12+
13+
;; This file is NOT part of GNU Emacs.
14+
15+
;; This program is free software; you can redistribute it and/or modify
16+
;; it under the terms of the GNU General Public License as published by
17+
;; the Free Software Foundation, either version 3 of the License, or
18+
;; (at your option) any later version.
19+
20+
;; This program is distributed in the hope that it will be useful,
21+
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
22+
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+
;; GNU General Public License for more details.
24+
25+
;; You should have received a copy of the GNU General Public License
26+
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
27+
28+
;;; Commentary:
29+
;;
30+
;; Preview the current ivy file selection.
31+
;;
32+
33+
;;; Code:
34+
35+
(require 'ivy)
36+
37+
(defgroup ivy-file-preview nil
38+
"Preview the current ivy file selection."
39+
:prefix "ivy-file-preview-"
40+
:group 'tool
41+
:link '(url-link :tag "Repository" "https://github.com/jcs-elpa/ivy-file-preview"))
42+
43+
(defun ivy-file-preview--enable ()
44+
"Enable `ivy-file-preview'."
45+
)
46+
47+
(defun ivy-file-preview--disable ()
48+
"Disable `ivy-file-preview'."
49+
)
50+
51+
;;;###autoload
52+
(define-minor-mode ivy-file-preview-mode
53+
"Minor mode 'ivy-file-preview-mode'."
54+
:global t
55+
:require 'ivy-file-preview
56+
:group 'ivy-file-preview
57+
(if ivy-file-preview-mode (ivy-file-preview--enable) (ivy-file-preview--disable)))
58+
59+
(provide 'ivy-file-preview)
60+
;;; ivy-file-preview.el ends here

0 commit comments

Comments
 (0)