From ab85926250ee23a2292fcdf480e1bb8a04f5219e Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Mon, 6 Sep 2021 13:03:40 -0400 Subject: [PATCH] Remove reveal.js --- README.org | 164 ++++++++++++++++------------------------------ modules/emacs.nix | 2 +- 2 files changed, 56 insertions(+), 110 deletions(-) diff --git a/README.org b/README.org index c8d38d6..cd814a2 100644 --- a/README.org +++ b/README.org @@ -1,7 +1,7 @@ :PROPERTIES: :ID: e4ad3dd5-0996-45bc-92ab-6bdbf16e4310 :ROAM_REF: https://chrishayward.xyz/dotfiles/ -:ROAM_ALIASES: "https://github.com/chayward1/dotfiles" +:ROAM_ALIASES: "https://git.chrishayward.xyz/chris/dotfiles" "https://github.com/chayward1/dotfiles" "https://gitlab.com/chayward1/dotfiles" :END: #+TITLE: Dotfiles #+AUTHOR: Christopher James Hayward @@ -2228,6 +2228,9 @@ Org Roam[fn:61] is a plain-text knowledge management system. It borrows principl (lambda () (org-roam-setup))) +;; Silence the migration warnings. +(setq org-roam-v2-ack t) + ;; Set the roam directories. (setq org-roam-directory (expand-file-name "/etc/dotfiles") org-roam-dailies-directory (concat org-roam-directory "/docs/daily")) @@ -2284,40 +2287,23 @@ Org Roam[fn:61] is a plain-text knowledge management system. It borrows principl ;; Standard document. (add-to-list 'org-roam-capture-templates '("d" "Default" plain "%?" - :target (file+head "docs/${slug}.org.gpg" + :target (file+head "docs/%<%Y%m%d%H%M%S>${slug}.org.gpg" " ,#+TITLE: ${title} -,#+SUBTITLE: ,#+AUTHOR: Christopher James Hayward ,#+EMAIL: chris@chrishayward.xyz " ) :unnarrowed t)) -;; Course document. -(add-to-list 'org-roam-capture-templates - '("c" "Course" plain "%?" - :target (file+head "docs/courses/${slug}.org.gpg" -" -,#+TITLE: ${title} -,#+SUBTITLE: -,#+AUTHOR: Christopher James Hayward -,#+EMAIL: chris@chrishayward.xyz - -,#+OPTIONS: num:nil toc:nil todo:nil tasks:nil tags:nil -,#+OPTIONS: skip:nil author:nil email:nil creator:nil timestamp:nil -" -) - :unnarrowed t)) - ;; Daily notes. (add-to-list 'org-roam-dailies-capture-templates '("d" "Default" entry "* %?" :target (file+head "%<%Y-%m-%d>.org.gpg" " -#+TITLE: %<%Y-%m-%d> -#+AUTHOR: Christopher James Hayward -#+EMAIL: chris@chrishayward.xyz +,#+TITLE: %<%Y-%m-%d> +,#+AUTHOR: Christopher James Hayward +,#+EMAIL: chris@chrishayward.xyz "))) ;; Apply custom keybindings. @@ -2499,66 +2485,26 @@ Ox-Hugo[fn:72] is an Org-Mode[fn:60] exporter for Hugo[fn:33] compabile markdown ;; Capture templates. ;; Shared content. -(add-to-list 'org-roam-capture-templates - '("p" "Post" plain "%?" - :target (file+head "docs/posts/${slug}.org.gpg" -" -,#+TITLE: ${title} -,#+AUTHOR: Christopher James Hayward -,#+DATE: %<%Y-%m-%d> - -,#+EXPORT_FILE_NAME: ${slug} -,#+OPTIONS: num:nil todo:nil tasks:nil - -,#+ROAM_KEY: https://chrishayward.xyz/posts/${slug}/ - -,#+HUGO_BASE_DIR: ../ -,#+HUGO_AUTO_SET_LASTMOD: t -,#+HUGO_SECTION: posts -,#+HUGO_DRAFT: true -" -) - :unnarrowed t)) -#+END_SRC - -** Reveal - -#+NAME: emacs-reveal-package -#+BEGIN_SRC nix -epkgs.ox-reveal -#+END_SRC - -Reveal.js[fn:75] is an open source HTML presentation framework. It enables anyone with a web browser to create fully-featured and beautiful presentations for free. Presentations with Reveal.js[fn:75] are built on open web technologies. That means anything you can do on the web, you can do in your presentation. Ox Reveal[fn:76] is an Org Mode[fn:60] export backend. - -#+NAME: emacs-reveal-elisp -#+BEGIN_SRC emacs-lisp -;; Configure `ox-reveal' as an `org-mode-export' backend. -(require 'ox-reveal) +;; (add-to-list 'org-roam-capture-templates +;; '("p" "Post" plain "%?" +;; :target (file+head "docs/posts/${slug}.org.gpg" +;; " +;; ,#+TITLE: ${title} +;; ,#+AUTHOR: Christopher James Hayward +;; ,#+DATE: %<%Y-%m-%d> -;; Don't rely on any local software. -(setq org-reveal-root "https://cdn.jsdelivr.net/npm/reveal.js") +;; ,#+EXPORT_FILE_NAME: ${slug} +;; ,#+OPTIONS: num:nil todo:nil tasks:nil -;; Create a capture template. +;; ,#+ROAM_KEY: https://chrishayward.xyz/posts/${slug}/ -(add-to-list 'org-roam-capture-templates - '("s" "Slides" plain "%?" - :target (file+head "docs/slides/${slug}.org.gpg" -" -,#+TITLE: ${title} -,#+AUTHOR: Christopher James Hayward -,#+EMAIL: chris@chrishayward.xyz - -,#+REVEAL_ROOT: https://cdn.jsdelivr.net/npm/reveal.js -,#+REVEAL_THEME: serif - -,#+EXPORT_FILE_NAME: ${slug} - -,#+OPTIONS: reveal_title_slide:nil -,#+OPTIONS: num:nil toc:nil todo:nil tasks:nil tags:nil -,#+OPTIONS: skip:nil author:nil email:nil creator:nil timestamp:nil -" -) - :unnarrowed t)) +;; ,#+HUGO_BASE_DIR: ../ +;; ,#+HUGO_AUTO_SET_LASTMOD: t +;; ,#+HUGO_SECTION: posts +;; ,#+HUGO_DRAFT: true +;; " +;; ) +;; :unnarrowed t)) #+END_SRC ** Passwords @@ -2568,7 +2514,7 @@ Reveal.js[fn:75] is an open source HTML presentation framework. It enables anyon pkgs.pass #+END_SRC -With Pass[fn:77], each password lives inside of an encrypted =gpg= file, whose name is the title of the website or resource that requires the password. These encrypted files may be organized into meaningful folder hierarchies, compies from computer to computer, and in general, manipulated using standard command line tools. +With Pass[fn:75], each password lives inside of an encrypted =gpg= file, whose name is the title of the website or resource that requires the password. These encrypted files may be organized into meaningful folder hierarchies, compies from computer to computer, and in general, manipulated using standard command line tools. #+NAME: emacs-pass-package #+BEGIN_SRC nix @@ -2600,7 +2546,7 @@ epkgs.docker epkgs.dockerfile-mode #+END_SRC -Manage Docker from inside of Emacs using Docker.el[fn:78]. This is a full docker porcelain similar to Magit, allowing complete control of a Docker system. Add syntax highlighting to Dockerfiles using dockerfile-mode[fn:79] from Spotify. +Manage Docker from inside of Emacs using Docker.el[fn:76]. This is a full docker porcelain similar to Magit, allowing complete control of a Docker system. Add syntax highlighting to Dockerfiles using dockerfile-mode[fn:77] from Spotify. #+NAME: emacs-docker-elisp #+BEGIN_SRC emacs-lisp @@ -2714,7 +2660,7 @@ mu index epkgs.projectile #+END_SRC -Projectile[fn:80] is a project interaction library for GNU/Emacs[fn:2]. Its goal is to provide a nice set of features operating on a project level, without introducing external dependencies. +Projectile[fn:78] is a project interaction library for GNU/Emacs[fn:2]. Its goal is to provide a nice set of features operating on a project level, without introducing external dependencies. #+NAME: emacs-projectile-elisp #+BEGIN_SRC emacs-lisp @@ -2731,7 +2677,7 @@ epkgs.lsp-mode epkgs.lsp-ui #+END_SRC -The Language Server Protocol (LSP)[fn:81] defines the protocol used between an Editor or IDE, and a language server that provides features like: +The Language Server Protocol (LSP)[fn:79] defines the protocol used between an Editor or IDE, and a language server that provides features like: + Auto Complete + Go To Defintion @@ -2755,7 +2701,7 @@ The Language Server Protocol (LSP)[fn:81] defines the protocol used between an E epkgs.ccls #+END_SRC -Emacs CCLS[fn:82] is a client for CCLS, a C/C++/Objective-C language server supporting multi-million line C++ code bases, powered by libclang. +Emacs CCLS[fn:80] is a client for CCLS, a C/C++/Objective-C language server supporting multi-million line C++ code bases, powered by libclang. #+NAME: emacs-ccls-elisp #+BEGIN_SRC emacs-lisp @@ -2778,7 +2724,7 @@ Emacs CCLS[fn:82] is a client for CCLS, a C/C++/Objective-C language server supp epkgs.company #+END_SRC -Company[fn:83] is a text completion framework for GNU/Emacs[fn:2]. The name stands for =Complete Anything=. It uses pluggable back-ends and front-ends to retieve and display completion candidates. +Company[fn:81] is a text completion framework for GNU/Emacs[fn:2]. The name stands for =Complete Anything=. It uses pluggable back-ends and front-ends to retieve and display completion candidates. #+NAME: emacs-company-elisp #+BEGIN_SRC emacs-lisp @@ -2797,7 +2743,7 @@ Company[fn:83] is a text completion framework for GNU/Emacs[fn:2]. The name stan epkgs.go-mode #+END_SRC -Go Mode[fn:84] is a major mode for editing Golang[fn:12] source code in GNU/Emacs[fn:2]. +Go Mode[fn:82] is a major mode for editing Golang[fn:12] source code in GNU/Emacs[fn:2]. #+NAME: emacs-golang-elisp #+BEGIN_SRC emacs-lisp @@ -2817,7 +2763,7 @@ Go Mode[fn:84] is a major mode for editing Golang[fn:12] source code in GNU/Emac epkgs.rustic #+END_SRC -Rustic[fn:83] is a fork of rust-mode that integrates well with the Language Server Protocol[fn:77]. Include the rust shell before launching GNU/Emacs[fn:2] to use this! +Rustic[fn:81] is a fork of rust-mode that integrates well with the Language Server Protocol[fn:75]. Include the rust shell before launching GNU/Emacs[fn:2] to use this! #+NAME: emacs-rustic-elisp #+BEGIN_SRC emacs-lisp @@ -2833,7 +2779,7 @@ Rustic[fn:83] is a fork of rust-mode that integrates well with the Language Serv epkgs.pretty-mode #+END_SRC -The built in Python Mode[fn:85] has a nice feature set for working with Python[fn:19] code in GNU/Emacs[fn:2]. It is complimented with the addition of an LSP[fn:81] server. These tools are included in the Development Shell[fn:11] for Python[fn:19]. +The built in Python Mode[fn:83] has a nice feature set for working with Python[fn:19] code in GNU/Emacs[fn:2]. It is complimented with the addition of an LSP[fn:79] server. These tools are included in the Development Shell[fn:11] for Python[fn:19]. #+NAME: emacs-python-elisp #+BEGIN_SRC emacs-lisp @@ -2857,14 +2803,14 @@ epkgs.protobuf-mode pkgs.plantuml #+END_SRC -PlantUML[fn:86] is an open-source tool allowing users to create diagrams from a plain-text language. Besides various UML diagrams, PlantUML[fn:86] has support for various other software developmented related formats, as well as visualizations of =JSON= and =YAML= files. +PlantUML[fn:84] is an open-source tool allowing users to create diagrams from a plain-text language. Besides various UML diagrams, PlantUML[fn:84] has support for various other software developmented related formats, as well as visualizations of =JSON= and =YAML= files. #+NAME: emacs-plantuml-package #+BEGIN_SRC nix epkgs.plantuml-mode #+END_SRC -PlantUML Mode[fn:87] is a major mode for editing PlantUML[fn:86] sources in GNU/Emacs[fn:2]. +PlantUML Mode[fn:85] is a major mode for editing PlantUML[fn:84] sources in GNU/Emacs[fn:2]. #+NAME: emacs-plantuml-elisp #+BEGIN_SRC emacs-lisp @@ -2886,7 +2832,7 @@ epkgs.ivy-posframe epkgs.ivy-prescient #+END_SRC -Ivy (Swiper)[fn:88] is a generic completion mechanism for GNU/Emacs[fn:2]. While operating similarily to other completion schemes like =icomplete-mode=, it aims to be more efficient, smaller, simpler, and smoother to use, while remaining highly customizable. +Ivy (Swiper)[fn:86] is a generic completion mechanism for GNU/Emacs[fn:2]. While operating similarily to other completion schemes like =icomplete-mode=, it aims to be more efficient, smaller, simpler, and smoother to use, while remaining highly customizable. #+NAME: emacs-swiper-elisp #+BEGIN_SRC emacs-lisp @@ -2927,7 +2873,7 @@ It's possible to control the frame opacity in GNU/Emacs[fn:2]. Unlike other tran pkgs.brightnessctl #+END_SRC -The Desktop Environment[fn:89] package provides commands and a global minor mode for controlling your GNU/Linux[fn:1] desktop from within GNU/Emacs[fn:2]. +The Desktop Environment[fn:87] package provides commands and a global minor mode for controlling your GNU/Linux[fn:1] desktop from within GNU/Emacs[fn:2]. #+NAME: emacs-desktop-package #+BEGIN_SRC nix @@ -2950,7 +2896,7 @@ You can control the brightness, volume, take screenshots, and lock / unlock the epkgs.doom-themes #+END_SRC -Doom Themes[fn:90] is a theme megapack for GNU/Emacs[fn:2], inspired by community favourites. +Doom Themes[fn:88] is a theme megapack for GNU/Emacs[fn:2], inspired by community favourites. #+NAME: emacs-doom-themes-elisp #+BEGIN_SRC emacs-lisp @@ -3135,34 +3081,34 @@ Doom Modeline[fn:26] is a fancy and fast modeline inspired by minimalism design. [fn:74] https://chrishayward.xyz/notes/ -[fn:75] https://revealjs.com +[fn:75] https://password-store.org -[fn:76] https://github.com/hexmode/ox-reveal +[fn:76] https://github.com/Silex/docker.el -[fn:77] https://password-store.org +[fn:77] https://github.com/spotify/dockerfile-mode -[fn:78] https://github.com/Silex/docker.el +[fn:78] https://projectile.mx -[fn:79] https://github.com/spotify/dockerfile-mode +[fn:79] https://microsoft.github.io/language-server-protocol -[fn:80] https://projectile.mx +[fn:80] https://github.com/MaskRay/emacs-ccls -[fn:81] https://microsoft.github.io/language-server-protocol +[fn:81] https://company-mode.github.io -[fn:82] https://github.com/MaskRay/emacs-ccls +[fn:82] https://emacswiki.org/emacs/GoMode -[fn:83] https://company-mode.github.io +[fn:83] https://plantuml.com -[fn:84] https://emacswiki.org/emacs/GoMode +[fn:84] https://github.com/skuro/plantuml-mode -[fn:85] https://plantuml.com +[fn:85] https://github.com/abo-abo/swiper -[fn:86] https://github.com/skuro/plantuml-mode +[fn:86] https://github.com/DamienCassou/desktop-environment -[fn:87] https://github.com/abo-abo/swiper +[fn:87] https://github.com/hlissner/emacs-doom-themes -[fn:88] https://github.com/DamienCassou/desktop-environment +[fn:88] https://github.com/seagle0128/doom-modeline -[fn:89] https://github.com/hlissner/emacs-doom-themes +[fn:89] https://revealjs.com -[fn:90] https://github.com/seagle0128/doom-modeline +[fn:90] https://github.com/hexmode/ox-reveal diff --git a/modules/emacs.nix b/modules/emacs.nix index 5f8edbf..65e8a2e 100644 --- a/modules/emacs.nix +++ b/modules/emacs.nix @@ -25,7 +25,7 @@ let epkgs.writegood-mode epkgs.ob-http epkgs.ox-hugo - epkgs.ox-reveal + epkgs.password-store epkgs.docker epkgs.dockerfile-mode