From 296cc2d0b856d423323e22337eb1759855995a74 Mon Sep 17 00:00:00 2001 From: Rostislav Svoboda Date: Sun, 10 Mar 2024 17:10:07 +0100 Subject: [PATCH] notes --- notes/cli/listing.scrbl | 2 +- notes/editors/emacs.scrbl | 12 ++++++++++++ notes/gui.scrbl | 14 +++++--------- notes/guix-guile-nix/guile.scrbl | 5 +++++ 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/notes/cli/listing.scrbl b/notes/cli/listing.scrbl index 7f4f987..5ac63b7 100644 --- a/notes/cli/listing.scrbl +++ b/notes/cli/listing.scrbl @@ -2,7 +2,7 @@ @block{@block-name{Listing} # listing: list contents of directories in a tree-like format. - tree -f # full-path + tree -f (pwd) # full path prefix for each file. lff # listing: sort by size; -l use a long listing format diff --git a/notes/editors/emacs.scrbl b/notes/editors/emacs.scrbl index c412aa8..2da3ca6 100644 --- a/notes/editors/emacs.scrbl +++ b/notes/editors/emacs.scrbl @@ -791,6 +791,18 @@ | | M-x info-emacs-manual | | M-x info-display-manual + ;; Info pages / mode movements + | ~l~ | Back to the last node visited | + | ~n~ | Next node | + | ~p~ | Previous node | + | ~u~ | Up in the hierarchy | + | ~m~ | Follow a menu item (with prompt for menu item name) | + | ~s~ | Search the Info pages (with prompt for search query) | + | ~g~ | Go to a node by name (with prompt for node name) | + | ~Space~ | Scroll forward one page | + | ~Backspace~ / ~DEL~ | Scroll backward one page | + | ~d~ | Directory node ("home page" of Info documentation) | + ;; macros M-x kmacro-name-last-macro ;; 1. M-x insert-kbd-macro ;; 2. diff --git a/notes/gui.scrbl b/notes/gui.scrbl index b95f113..0fb3aec 100644 --- a/notes/gui.scrbl +++ b/notes/gui.scrbl @@ -234,11 +234,11 @@ ~/.config/xfce4-session/ \ ~/.config/xubuntu/ # also: reset xfce4-panel ... - xfce4-panel --quit - pkill xfconfd - rm -rf \ ~/.config/xfce4/panel - ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml - xfce4-panel # .. and restart it + xfce4-panel --quit && \ + pkill xfconfd && \ + rm -rf ~/.config/xfce4/panel \ + ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml && \ + xfce4-panel & disown # .. and restart it. The xfconfd is respawned automatically echo $XDG_CONFIG_DIRS echo $XDG_DATA_DIRS @@ -248,8 +248,4 @@ sudo systemctl | grep dm sudo systemctl restart - - # Window Buttons context menu (right-click in the middle of the panel) - # -> Properties -> Window grouping: -> Never - } diff --git a/notes/guix-guile-nix/guile.scrbl b/notes/guix-guile-nix/guile.scrbl index 198faf4..5184e10 100644 --- a/notes/guix-guile-nix/guile.scrbl +++ b/notes/guix-guile-nix/guile.scrbl @@ -135,6 +135,11 @@ (fun 'x #:kw '42 'args) ;; (x 42 #f (#:kw 42 args)) (fun 'x #:kw '42 #:kw-opt 'x 'args) ;; (x 42 x (#:kw 42 #:kw-opt x args)) (apply fun (list 'x #:kw '42 'args));; (x 42 #f (#:kw 42 args)) + + (define* (fun x #:optional (y 'y-default-val)) + (list x y)) + (fun 1) ;; (1 y-default-val) + (fun 1 2) ;; (1 2) } }