Minor edits

This commit is contained in:
Derek Taylor
2023-12-10 13:32:18 -06:00
parent e7913195df
commit c532ff5a4d
2 changed files with 31 additions and 29 deletions

View File

@@ -75,8 +75,8 @@
(drag-stuff-global-mode 1) (drag-stuff-global-mode 1)
(drag-stuff-define-keys)) (drag-stuff-define-keys))
(setq ediff-split-window-function 'split-window-horizontally ;;(setq ediff-split-window-function 'split-window-horizontally
ediff-window-setup-function 'ediff-setup-windows-plain) ;; ediff-window-setup-function 'ediff-setup-windows-plain)
(defun dt-ediff-hook () (defun dt-ediff-hook ()
(ediff-setup-keymap) (ediff-setup-keymap)
@@ -516,16 +516,12 @@
(make-local-variable 'auto-hscroll-mode) (make-local-variable 'auto-hscroll-mode)
(setq auto-hscroll-mode nil))))) (setq auto-hscroll-mode nil)))))
(use-package toc-org (eval-after-load 'org-indent '(diminish 'org-indent-mode))
:commands toc-org-enable
:init (add-hook 'org-mode-hook 'toc-org-enable))
(add-hook 'org-mode-hook 'org-indent-mode) (add-hook 'org-mode-hook 'org-indent-mode)
(use-package org-bullets) (use-package org-bullets)
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))) (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
(eval-after-load 'org-indent '(diminish 'org-indent-mode))
(custom-set-faces (custom-set-faces
'(org-level-1 ((t (:inherit outline-1 :height 1.7)))) '(org-level-1 ((t (:inherit outline-1 :height 1.7))))
'(org-level-2 ((t (:inherit outline-2 :height 1.6)))) '(org-level-2 ((t (:inherit outline-2 :height 1.6))))
@@ -537,6 +533,10 @@
(require 'org-tempo) (require 'org-tempo)
(use-package toc-org
:commands toc-org-enable
:init (add-hook 'org-mode-hook 'toc-org-enable))
(use-package pdf-tools (use-package pdf-tools
:defer t :defer t
:commands (pdf-loader-install) :commands (pdf-loader-install)

View File

@@ -34,11 +34,11 @@
- [[#modeline][MODELINE]] - [[#modeline][MODELINE]]
- [[#neotree][NEOTREE]] - [[#neotree][NEOTREE]]
- [[#org-mode][ORG MODE]] - [[#org-mode][ORG MODE]]
- [[#enabling-table-of-contents][Enabling Table of Contents]]
- [[#enabling-org-bullets][Enabling Org Bullets]]
- [[#diminish-org-indent-mode][Diminish Org Indent Mode]] - [[#diminish-org-indent-mode][Diminish Org Indent Mode]]
- [[#org-bullets][Org-Bullets]]
- [[#org-level-headers][Org Level Headers]] - [[#org-level-headers][Org Level Headers]]
- [[#source-code-block-tag-expansion][Source Code Block Tag Expansion]] - [[#org-tempo][Org-Tempo]]
- [[#toc-org][Toc-Org]]
- [[#pdfs][PDFs]] - [[#pdfs][PDFs]]
- [[#perspective][PERSPECTIVE]] - [[#perspective][PERSPECTIVE]]
- [[#projectile][PROJECTILE]] - [[#projectile][PROJECTILE]]
@@ -183,8 +183,8 @@ This package implements hiding or abbreviation of the modeline displays (lighter
'ediff' is a diff program that is built into Emacs. By default, 'ediff' splits files vertically and places the 'help' frame in its own window. I have changed this so the two files are split horizontally and the 'help' frame appears as a lower split within the existing window. Also, I create my own 'dt-ediff-hook' where I add 'j/k' for moving to next/prev diffs. By default, this is set to 'n/p'. 'ediff' is a diff program that is built into Emacs. By default, 'ediff' splits files vertically and places the 'help' frame in its own window. I have changed this so the two files are split horizontally and the 'help' frame appears as a lower split within the existing window. Also, I create my own 'dt-ediff-hook' where I add 'j/k' for moving to next/prev diffs. By default, this is set to 'n/p'.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq ediff-split-window-function 'split-window-horizontally ;;(setq ediff-split-window-function 'split-window-horizontally
ediff-window-setup-function 'ediff-setup-windows-plain) ;; ediff-window-setup-function 'ediff-setup-windows-plain)
(defun dt-ediff-hook () (defun dt-ediff-hook ()
(ediff-setup-keymap) (ediff-setup-keymap)
@@ -720,22 +720,6 @@ Neotree is a file tree viewer. When you open neotree, it jumps to the current f
#+end_src #+end_src
* ORG MODE * ORG MODE
** Enabling Table of Contents
#+begin_src emacs-lisp
(use-package toc-org
:commands toc-org-enable
:init (add-hook 'org-mode-hook 'toc-org-enable))
#+end_src
** Enabling Org Bullets
Org-bullets gives us attractive bullets rather than asterisks.
#+begin_src emacs-lisp
(add-hook 'org-mode-hook 'org-indent-mode)
(use-package org-bullets)
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
#+end_src
** Diminish Org Indent Mode ** Diminish Org Indent Mode
Removes "Ind" from showing in the modeline. Removes "Ind" from showing in the modeline.
@@ -744,6 +728,15 @@ Removes "Ind" from showing in the modeline.
#+end_src #+end_src
** Org-Bullets
Org-bullets gives us attractive bullets rather than asterisks.
#+begin_src emacs-lisp
(add-hook 'org-mode-hook 'org-indent-mode)
(use-package org-bullets)
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
#+end_src
** Org Level Headers ** Org Level Headers
#+begin_src emacs-lisp #+begin_src emacs-lisp
(custom-set-faces (custom-set-faces
@@ -756,7 +749,7 @@ Removes "Ind" from showing in the modeline.
'(org-level-7 ((t (:inherit outline-5 :height 1.1))))) '(org-level-7 ((t (:inherit outline-5 :height 1.1)))))
#+end_src #+end_src
** Source Code Block Tag Expansion ** Org-Tempo
Org-tempo is not a separate package but a module within org that can be enabled. Org-tempo allows for '<s' followed by TAB to expand to a begin_src tag. Other expansions available include: Org-tempo is not a separate package but a module within org that can be enabled. Org-tempo allows for '<s' followed by TAB to expand to a begin_src tag. Other expansions available include:
| Typing the below + TAB | Expands to ... | | Typing the below + TAB | Expands to ... |
@@ -776,6 +769,15 @@ Org-tempo is not a separate package but a module within org that can be enabled.
(require 'org-tempo) (require 'org-tempo)
#+end_src #+end_src
** Toc-Org
Allows us to create a Table of Contents in our Org docs.
#+begin_src emacs-lisp
(use-package toc-org
:commands toc-org-enable
:init (add-hook 'org-mode-hook 'toc-org-enable))
#+end_src
* PDFs * PDFs
[[https://github.com/vedang/pdf-tools][pdf-tools]] is a replacement of DocView for viewing PDF files inside Emacs. It uses the =poppler= library, which also means that 'pdf-tools' can by used to modify PDFs. I use to disable 'display-line-numbers-mode' in 'pdf-view-mode' because line numbers crash it. [[https://github.com/vedang/pdf-tools][pdf-tools]] is a replacement of DocView for viewing PDF files inside Emacs. It uses the =poppler= library, which also means that 'pdf-tools' can by used to modify PDFs. I use to disable 'display-line-numbers-mode' in 'pdf-view-mode' because line numbers crash it.