From 65a727df708f06996839cad15ce432fcea1d1365 Mon Sep 17 00:00:00 2001 From: Opal Date: Wed, 15 Dec 2021 02:47:54 -0500 Subject: [PATCH] Added Nyxt stuff --- .config/zsh/.zprofile | 2 +- .config/zsh/.zshrc | 8 ++------ Desktop.org | 39 +++++++++++++++++++++++++++++++++++++-- Emacs.org | 2 +- 4 files changed, 41 insertions(+), 10 deletions(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index e1c2f08..dd9ff6d 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -12,4 +12,4 @@ export XDG_DATA_HOME=~/.local/share export XDG_STATE_HOME=~/.config/zsh export EDITOR=nvim export VISUAL=nvim -export GUIX_PROFILE="/home/ry/.config//guix/current" . "$GUIX_PROFILE/etc/profile" +export GUIX_PROFILE="/home/ry/.config/guix/current" . "$GUIX_PROFILE/etc/profile" diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 8242864..c2266d2 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -15,16 +15,12 @@ source $ZSH/oh-my-zsh.sh export PATH=/home/ry/scripts:$PATH # cron scripts export PATH=/home/ry/scripts/cron-scripts:$PATH -# rust -export PATH=/home/ry/.cargo/bin:$PATH -# bin -export PATH=/bin:$PATH # doom export PATH=~/.config/emacs/bin:$PATH -# GUIX PATH +# GNU Guix path export PATH=/home/ry/.guix-profile/bin:$PATH -# locale --- # +# --- locale --- # export LANG=en_US.UTF-8 # --- autostart --- # diff --git a/Desktop.org b/Desktop.org index dc1a827..c2ca43a 100644 --- a/Desktop.org +++ b/Desktop.org @@ -1,13 +1,48 @@ #+TITLE: Desktop Configuration -This =.org= document is where I store all of my user-level application configuration including shells, terminal emulators, etc. +This =.org= document is where I store all of my user-level application configuration including shells, terminal emulators, browsers etc. + +* Nyxt + +Nyxt is a browser written in Common Lisp that follows the same philosophy of extensibility as Emacs. This makes it a perfect companion to an Emacs centered eco-system when you need a browser with more features than Eww. + +#+begin_src lisp :tangle ~/Dotfiles/.config/nyxt/init.lisp :mkdirp yes +;; Set default modes when opening Nyxt. +(define-configuration buffer + ((default-modes (append '(dark-mode + vi-normal-mode) %slot-default%)))) + +;; Keybindings +;; (Note: Override Map will override any other custom keybindings so use a prefix key.) +(define-configuration buffer + ((override-map (define-key %slot-default% + "C-x s" 'nyxt/web-mode:search-buffers + "C-x d" 'delete-current-buffer)))) + +;; todo: Redirect reddit to teddit +;; (defun old-reddit-handler (request-data) +;; (let ((url (url request-data))) +;; (setf (url request-data) +;; (if (search "reddit.com" (quri:uri-host url)) +;; (progn +;; (setf (quri:uri-host url) "old.reddit.com") +;; (log:info "Switching to old Reddit: ~s" (render-url url)) +;; url) +;; url))) +;; request-data) + +;; (define-configuration web-buffer +;; ((request-resource-hook +;; (hooks:add-hook %slot-default% (make-handler-resource #'old-reddit-handler))))) +;; (See url-dispatching-handler for a simpler way to achieve the same result.) +#+end_src * Shell Aside from using e-shell for quick command line usage, I mainly use vterm with Zsh. It's a bit of a complicated setup but allows for the maximum number of files possible to live in .config instead of littering my home directory. The entry-poignado ** zshrc -#+begin_src shell :tangle ~/Dotfiles/.config/zsh/.zshrc +#+begin_src shell :tangle ~/Dotfiles/.config/zsh/.zshrc :mkdirp yes [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return # --- zsh config --- # diff --git a/Emacs.org b/Emacs.org index 3b39593..afde75b 100644 --- a/Emacs.org +++ b/Emacs.org @@ -456,7 +456,7 @@ Account Information: ;; Refresh mail using isync every 5 minutes (setq mu4e-update-interval (* 5 60)) - (setq mu4e-get-mail-command "mbsync -a -c ~/Dotfiles/.config/mbsyn c/mbsyncrc") + (setq mu4e-get-mail-command "mbsync -a -c ~/Dotfiles/.config/mbsync/mbsyncrc") (setq mu4e-maildir "~/Mail") (setq mu4e-contexts