added comments, added nyxt blocker mode

This commit is contained in:
opalvaults
2021-12-21 17:45:02 -08:00
parent 787fa686ad
commit 4da16c5ce1
2 changed files with 19 additions and 14 deletions

View File

@@ -32,8 +32,8 @@
(set-default 'truncate-lines nil) ;; Wrap lines at end of screen
(setq visible-bell t) ;; Visible flash to represent a bell
(setq x-select-enable-clipboard t) ;; Enable clipboard
(global-tab-line-mode 1)
(setq inhibit-startup-message t)
(global-tab-line-mode 1) ;; Enable Tabs
(setq inhibit-startup-message t) ;; No startup message
;; Disable line mode for specific major/minor modes.
(dolist (mode '(org-mode-hook))

View File

@@ -5,9 +5,13 @@ Nyxt is a browser written in Common Lisp that follows the same philosophy of ext
* Keybindings
#+begin_src lisp
;; Vim keybindings, of course..
;; Vim-normal mode by default
(define-configuration buffer
((default-modes (append '(vi-normal-mode) %slot-default%))))
((default-modes (append '(vi-normal-mode) '(blocker-mode) %slot-default%))))
;; Vim-insert for prompt-buffer (minibuffer)
(define-configuration prompt-buffer
((default-modes (append '(vi-insert-mode) %slot-default%))))
;; Keybindings
;; (Note: Override Map will override any other custom keybindings so use a prefix key.)
@@ -45,15 +49,15 @@ Nyxt is a browser written in Common Lisp that follows the same philosophy of ext
:background-color "#EDDDAA")
(".source-name"
:color "black"
:background-color "#556B2F")
:background-color "#125458")
(".source-content"
:background-color "black")
(".source-content th"
:border "1px solid #556B2F"
:border "1px solid #125458"
:background-color "black")
;; The currently highlighted option.
("#selection"
:background-color "#CD5C5C"
:background-color "#125458"
:color "black")
(.marked :background-color "#8B3A3A"
:font-weight "bold"
@@ -73,19 +77,19 @@ Nyxt is a browser written in Common Lisp that follows the same philosophy of ext
:background-color "black"
:color "lightgray")
(hr
:color "darkgray")
:color "lightgray")
(a
:color "#556B2F")
:color "#125458")
(.button
:color "lightgray"
:background-color "#556B2F")))))))
:color "white"
:background-color "#125458")))))))
;; Link hints in web mode
(define-configuration nyxt/web-mode:web-mode
((nyxt/web-mode:highlighted-box-style
(cl-css:css
'((".nyxt-hint.nyxt-highlight-hint"
:background "#CD5C5C"))))))
:background "#125458"))))))
;; Modeline
(define-configuration status-buffer
@@ -95,7 +99,7 @@ Nyxt is a browser written in Common Lisp that follows the same philosophy of ext
;; Arrows on the left.
'(("#controls"
:border-top "1px solid white"
:background-color "#CD5C5C")
:background-color "#125458")
;; To the right of the arrows.
("#url"
:background-color "black"
@@ -107,7 +111,7 @@ Nyxt is a browser written in Common Lisp that follows the same philosophy of ext
:border-top "1px solid white")
;; The center segment.
("#tabs"
:background-color "#CD5C5C"
:background-color "#125458"
:color "black"
:border-top "1px solid white")))))))
@@ -134,6 +138,7 @@ Password managers are an essential feature and thankfully Nyxt allows me to inte
((password-interface (make-instance 'password:user-keepassxc-interface))))
#+end_src
* Ad Blocking
* Misc
** Redirection
I would like to keep expanding on these redirection functions so I can have native redirection away from sites that don't respect user privacy.