174 lines
4.9 KiB
Org Mode
174 lines
4.9 KiB
Org Mode
#+TITLE: Other Configurations/Packages
|
|
|
|
* Intro
|
|
This is where other packages are configured, that are very short, not worthy of their own file
|
|
|
|
* Ido
|
|
Ido is a autocomplete package for emacs' commands
|
|
#+begin_src emacs-lisp
|
|
(use-package ido
|
|
:config
|
|
(setq ido-everywhere t
|
|
ido-virtual-buffers t
|
|
ido-use-faces t)
|
|
(ido-mode 1))
|
|
#+end_src
|
|
|
|
* EWW
|
|
*Emacs Web WOWSER!*
|
|
This config just sets the download directory
|
|
|
|
#+begin_src emacs-lisp
|
|
(use-package eww
|
|
:custom
|
|
(eww-download-directory "~/dls" "location to put downloaded files")
|
|
(eww-search-prefix "https://lite.duckduckgo.com/lite/?q=" "prefix url to do search"))
|
|
#+end_src
|
|
|
|
* Fancy Battery
|
|
This shows the battery level on the emacs modeline
|
|
|
|
#+begin_src emacs-lisp
|
|
(use-package fancy-battery
|
|
:commands
|
|
fancy-battery-mode
|
|
:bind
|
|
("s-b b" . fancy-battery-mode))
|
|
#+end_src
|
|
|
|
* Rainbow Delimiter
|
|
color delimiters (parentheses, brackets, braces, etc) according to their level/depth.
|
|
|
|
#+begin_src emacs-lisp
|
|
(use-package rainbow-delimiters
|
|
:hook ((emacs-lisp-mode . rainbow-delimiters-mode)
|
|
(prog-mode . rainbow-delimiters-mode)))
|
|
#+end_src
|
|
|
|
* Org Tree Slide
|
|
do presentations in Org mode
|
|
|
|
#+begin_src emacs-lisp
|
|
(use-package org-tree-slide
|
|
:after org
|
|
:commands
|
|
org-tree-slide-mode
|
|
:config
|
|
(define-key org-tree-slide-mode-map (kbd "<f8>") 'org-tree-slide-mode-next-tree)
|
|
(define-key org-tree-slide-mode-map (kbd "<f9>") 'org-tree-slide-move-next-tree))
|
|
#+end_src
|
|
|
|
* Emacs Shell
|
|
** History
|
|
#+begin_src emacs-lisp
|
|
(add-hook 'eshell-expand-input-functions 'eshell-expand-history-references)
|
|
#+end_src
|
|
|
|
** Autocomplete
|
|
setup EShell's tab completion to be like bash's
|
|
#+begin_src emacs-lisp
|
|
(add-hook 'eshell-mode-hook (lambda () (setq pcomplete-cycle-completions nil)))
|
|
(setq eshell-cmpl-cycle-completions nil)
|
|
#+end_src
|
|
|
|
** Prompt
|
|
This sets the prompt to a lambda, for aesthetic reasons
|
|
#+begin_src emacs-lisp
|
|
(setq eshell-prompt-function
|
|
(lambda nil
|
|
(concat
|
|
(propertize (concat
|
|
"\n# "
|
|
(user-login-name)
|
|
"@"
|
|
(car (split-string system-name "\\."))
|
|
":"
|
|
(file-name-nondirectory (eshell/pwd))
|
|
(if (= (user-uid) 0) " #λ" " λ"))
|
|
'face `(:inherit 'eshell-prompt :weight bold))
|
|
(propertize " " 'face `(:inherit default)))))
|
|
(setq eshell-highlight-prompt nil)
|
|
#+end_src
|
|
|
|
* Undo Tree
|
|
a visualizer for Emacs' cool but confusing undo/history system
|
|
|
|
#+begin_src emacs-lisp
|
|
(use-package undo-tree
|
|
:diminish
|
|
:custom
|
|
(undo-tree-history-directory-alist `(("." . ,(expand-file-name "cache" user-emacs-directory))) ".undo-tree files dir")
|
|
:config
|
|
(global-undo-tree-mode))
|
|
#+end_src
|
|
|
|
* Password store
|
|
#+begin_src emacs-lisp
|
|
; (use-package password-store)
|
|
; (use-package pass)
|
|
#+end_src
|
|
|
|
* Nov.el
|
|
Mode to read epub files
|
|
#+begin_src emacs-lisp
|
|
(use-package nov
|
|
:mode ("\\.epub\\'" . nov-mode))
|
|
#+end_src
|
|
|
|
* Elgrep
|
|
a built in grep command in emacs
|
|
|
|
#+begin_src emacs-lisp
|
|
(use-package elgrep
|
|
:commands elgrep)
|
|
#+end_src
|
|
|
|
* Abbrev
|
|
Abbrev is helpful for typing long commands, but I don't need to know it in the modeline
|
|
#+begin_src emacs-lisp
|
|
(diminish 'abbrev)
|
|
#+end_src
|
|
|
|
* Pinentry
|
|
use emacs' internal pinentry
|
|
|
|
#+begin_src emacs-lisp
|
|
(use-package pinentry
|
|
:config
|
|
;; let's get encryption established
|
|
(setenv "GPG_AGENT_INFO" nil) ;; use emacs pinentry
|
|
(setq auth-source-debug t)
|
|
|
|
(setq epg-gpg-program "gpg2") ;; not necessary
|
|
(require 'epa-file)
|
|
(epa-file-enable)
|
|
(setq epa-pinentry-mode 'loopback)
|
|
(pinentry-start)
|
|
|
|
(require 'org-crypt)
|
|
(org-crypt-use-before-save-magic))
|
|
#+end_src
|
|
|
|
* Elfeed Web
|
|
Elfeed is a emacs package for reading RSS Web News.
|
|
|
|
#+begin_src emacs-lisp
|
|
(use-package elfeed
|
|
:commands
|
|
elfeed
|
|
elfeed-update
|
|
:custom
|
|
(elfeed-db-directory (expand-file-name "elfeed" user-emacs-directory)
|
|
"location for elfeed to put it's database")
|
|
(elfeed-feeds '(("https://feeds.bbci.co.uk/news/technology/rss.xml" bbc technology)
|
|
("https://feeds.feedburner.com/rsscna/engnews" taiwan central focustaiwan)
|
|
("https://hnrss.org/frontpage.atom" hacker)
|
|
("https://www.kernel.org/feeds/kdist.xml" linux kernel)
|
|
("https:/hund.tty1.se/feed.xml" hund blog)
|
|
("https://opensource.com/feed" opensource)
|
|
("https://rss.slashdot.org/Slashdot/slashdot" slashdot technology)
|
|
("https://www.cnet.com/rss/news/" cnet technology))
|
|
"links to the news sources and keywords associated to them"))
|
|
#+end_src
|
|
|