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 (set-default 'truncate-lines nil) ;; Wrap lines at end of screen
(setq visible-bell t) ;; Visible flash to represent a bell (setq visible-bell t) ;; Visible flash to represent a bell
(setq x-select-enable-clipboard t) ;; Enable clipboard (setq x-select-enable-clipboard t) ;; Enable clipboard
(global-tab-line-mode 1) (global-tab-line-mode 1) ;; Enable Tabs
(setq inhibit-startup-message t) (setq inhibit-startup-message t) ;; No startup message
;; Disable line mode for specific major/minor modes. ;; Disable line mode for specific major/minor modes.
(dolist (mode '(org-mode-hook)) (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 * Keybindings
#+begin_src lisp #+begin_src lisp
;; Vim keybindings, of course.. ;; Vim-normal mode by default
(define-configuration buffer (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 ;; Keybindings
;; (Note: Override Map will override any other custom keybindings so use a prefix key.) ;; (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") :background-color "#EDDDAA")
(".source-name" (".source-name"
:color "black" :color "black"
:background-color "#556B2F") :background-color "#125458")
(".source-content" (".source-content"
:background-color "black") :background-color "black")
(".source-content th" (".source-content th"
:border "1px solid #556B2F" :border "1px solid #125458"
:background-color "black") :background-color "black")
;; The currently highlighted option. ;; The currently highlighted option.
("#selection" ("#selection"
:background-color "#CD5C5C" :background-color "#125458"
:color "black") :color "black")
(.marked :background-color "#8B3A3A" (.marked :background-color "#8B3A3A"
:font-weight "bold" :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" :background-color "black"
:color "lightgray") :color "lightgray")
(hr (hr
:color "darkgray") :color "lightgray")
(a (a
:color "#556B2F") :color "#125458")
(.button (.button
:color "lightgray" :color "white"
:background-color "#556B2F"))))))) :background-color "#125458")))))))
;; Link hints in web mode ;; Link hints in web mode
(define-configuration nyxt/web-mode:web-mode (define-configuration nyxt/web-mode:web-mode
((nyxt/web-mode:highlighted-box-style ((nyxt/web-mode:highlighted-box-style
(cl-css:css (cl-css:css
'((".nyxt-hint.nyxt-highlight-hint" '((".nyxt-hint.nyxt-highlight-hint"
:background "#CD5C5C")))))) :background "#125458"))))))
;; Modeline ;; Modeline
(define-configuration status-buffer (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. ;; Arrows on the left.
'(("#controls" '(("#controls"
:border-top "1px solid white" :border-top "1px solid white"
:background-color "#CD5C5C") :background-color "#125458")
;; To the right of the arrows. ;; To the right of the arrows.
("#url" ("#url"
:background-color "black" :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") :border-top "1px solid white")
;; The center segment. ;; The center segment.
("#tabs" ("#tabs"
:background-color "#CD5C5C" :background-color "#125458"
:color "black" :color "black"
:border-top "1px solid white"))))))) :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)))) ((password-interface (make-instance 'password:user-keepassxc-interface))))
#+end_src #+end_src
* Ad Blocking
* Misc * Misc
** Redirection ** 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. 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.