Skip to content

pdelfino/nyxt-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nyxt-config

Wanderer above the Sea of Fog

"Wanderer above the Sea of Fog" (c. 1818) by Caspar David Friedrich — Wikipedia

Configuration for the Nyxt browser -- bringing Emacs keybindings to keyboard-driven web browsing.

About

Nyxt is a keyboard-oriented, extensible web browser inspired by Emacs and Vim, fully configurable in Common Lisp. This repo contains a minimalist init.lisp that keeps the excellent defaults while adding two things: Google as a search engine and a set of Emacs-style keybindings on top of Nyxt's default CUA mode.

The philosophy is simple: the out-of-the-box experience is already good, so only override what is missing.

Key Customizations

Search Engines

  • Google -- https://www.google.com/search?q=~a
  • Wikipedia -- https://en.wikipedia.org/w/index.php?search=~a

Emacs Keybindings in CUA Mode

Rather than switching entirely to Emacs mode, these bindings bring familiar Emacs navigation into the default CUA keymap:

Binding Action
M-x Execute command
C-n / C-p Scroll down / up
C-f / C-b Scroll right / left
C-s Search buffer
M-w Copy
C-y Paste
C-Y Paste from clipboard ring
M-s-< / M-s-> Scroll to top / bottom
C-g Query selection in search engine

The prompt buffer uses full Emacs mode for comfortable minibuffer-style interaction.

Files

  • init.lisp -- active configuration (Nyxt 3.0+)
  • before-3.0.lisp -- archived config from before the Nyxt 3.0 API changes

Installation

# Clone
git clone git@github.com:pdelfino/nyxt-config.git ~/projects/nyxt-config

# Symlink to Nyxt's config directory
mkdir -p ~/.config/nyxt
ln -sf ~/projects/nyxt-config/init.lisp ~/.config/nyxt/init.lisp

Requirements

Related

About

My configuration file for the Nyxt browser.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors