EPUB support + Terminal evil cursor

This commit is contained in:
Aleksandr Lebedev 2025-01-31 22:30:05 +01:00
parent 7a2324a826
commit 59fa20768f

View file

@ -28,6 +28,7 @@
- [[#zooming-inout][Zooming In/Out]] - [[#zooming-inout][Zooming In/Out]]
- [[#sane-defaults][Sane defaults]] - [[#sane-defaults][Sane defaults]]
- [[#battery-info][Battery info]] - [[#battery-info][Battery info]]
- [[#epub-support-reader-in-emacs][Epub support (Reader in Emacs)]]
- [[#magit][MAGIT]] - [[#magit][MAGIT]]
- [[#minibuffer-escape][Minibuffer escape]] - [[#minibuffer-escape][Minibuffer escape]]
- [[#modeline][Modeline]] - [[#modeline][Modeline]]
@ -36,7 +37,7 @@
- [[#rainbow-delimiters][RAINBOW DELIMITERS]] - [[#rainbow-delimiters][RAINBOW DELIMITERS]]
- [[#org-mode][ORG MODE]] - [[#org-mode][ORG MODE]]
- [[#enabling-table-of-contents][Enabling Table of Contents]] - [[#enabling-table-of-contents][Enabling Table of Contents]]
- [[#enabling-org-bullets][Enabling Org Bullets]] - [[#modern-org-mode][Modern Org Mode]]
- [[#org-level-headers][Org Level Headers]] - [[#org-level-headers][Org Level Headers]]
- [[#source-code-block-tag-expansion][Source Code Block Tag Expansion]] - [[#source-code-block-tag-expansion][Source Code Block Tag Expansion]]
- [[#org-roam][ORG ROAM]] - [[#org-roam][ORG ROAM]]
@ -101,6 +102,13 @@
;; Setting RETURN key in org-mode to follow links ;; Setting RETURN key in org-mode to follow links
(setq org-return-follows-link t) (setq org-return-follows-link t)
#+end_src #+end_src
*** Terminal Evil
#+begin_src emacs-lisp
(unless (display-graphic-p)
(require 'evil-terminal-cursor-changer)
(evil-terminal-cursor-changer-activate) ; or (etcc-on)
)
#+end_src
** Recent Files ** Recent Files
#+begin_src emacs-lisp #+begin_src emacs-lisp
(recentf-mode t) (recentf-mode t)
@ -622,6 +630,12 @@ The following settings are simple modes that are enabled (or disabled) so that E
(battery)) (battery))
(display-battery-mode 1)) (display-battery-mode 1))
#+end_src #+end_src
* Epub support (Reader in Emacs)
[[https://depp.brause.cc/nov.el/][Nov.el]] is recommended by [[https://www.masteringemacs.org/book][Author of Mastering Emacs book]]
#+begin_src emacs-lisp
(use-package nov :ensure t)
(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))
#+end_src
* MAGIT * MAGIT
Magit is a full-featured git client for Emacs. Magit is a full-featured git client for Emacs.
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -693,13 +707,13 @@ Adding rainbow coloring to parentheses.
:init (add-hook 'org-mode-hook 'toc-org-enable)) :init (add-hook 'org-mode-hook 'toc-org-enable))
#+end_src #+end_src
** Enabling Org Bullets ** Modern Org Mode
Org-bullets gives us attractive bullets rather than asterisks.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(add-hook 'org-mode-hook 'org-indent-mode) ;;;; Better Looking Bullets
(use-package org-bullets :ensure t) (add-hook 'org-mode-hook 'org-indent-mode)
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))) (use-package org-bullets :ensure t)
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
#+end_src #+end_src
** Org Level Headers ** Org Level Headers
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -734,7 +748,7 @@ Org-tempo is not a separate package but a module within org that can be enabled.
* ORG ROAM * ORG ROAM
** Org Roam itself ** Org Roam itself
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package org-roam (use-package org-roam
:ensure t :ensure t
:init :init
(setq org-roam-v2-ack t) (setq org-roam-v2-ack t)
@ -778,15 +792,14 @@ Org-tempo is not a separate package but a module within org that can be enabled.
(interactive) (interactive)
(setq org-agenda-files (kylekrein/org-roam-list-notes-by-tag "Project"))) (setq org-agenda-files (kylekrein/org-roam-list-notes-by-tag "Project")))
;; Build the agenda list the first time for the session
(kylekrein/org-roam-refresh-agenda-list)
(setq org-agenda-files nil (setq org-agenda-files nil
org-roam-node-display-template "${title} ${tags}" org-roam-node-display-template "${title} ${tags}"
org-agenda-start-on-weekday 1 ;; Week starts on Monday instead of Sunday org-agenda-start-on-weekday 1 ;; Week starts on Monday instead of Sunday
) )
;; Build the agenda list the first time for the session
(kylekrein/org-roam-refresh-agenda-list)
#+end_src #+end_src
** Inbox ** Inbox
#+begin_src emacs-lisp #+begin_src emacs-lisp