96842c662b2e2ab8cbf71ba564e010ead8b3724a — octaspire 11 days ago b86386e
Add APMD config, bind keys for saving/restoring desktop on GNU/Emacs
2 files changed, 21 insertions(+), 0 deletions(-)

M emacs/.config/emacs/init.el
M README.org => README.org +16 -0
@@ 68,3 68,19 @@ permit nopass octaspire as root cmd sh args /etc/netstart iwm0
permit nopass octaspire as root cmd syspatch args
permit nopass octaspire as root cmd pkg_add args -ui

**** Advanced Power Management Daemon (APMD)

Before doing this, command ~dmesg | grep cpu0~
should be used to verify that the processor
supports frequency scaling.

If it does (listing shows for example for Intel processor
~Enhanced SpeedStep~ speeds), the following commands can
be used to turn =APMD= on.

#+begin_src shell
rcctl enable apmd
rcctl set apmd flags -A
rcctl start apmd

M emacs/.config/emacs/init.el => emacs/.config/emacs/init.el +5 -0
@@ 47,6 47,9 @@
(setq octaspire/elisp-dir (concat octaspire/root-dir
				  (file-name-as-directory "elisp")))

(setq octaspire/desktop-dir (concat octaspire/root-dir
				    (file-name-as-directory "desktop")))

(setq octaspire/submodule-dir (concat octaspire/root-dir
				      (file-name-as-directory "submodules")))

@@ 502,6 505,8 @@ adding it to the kill ring as a new kill."
(global-set-key (kbd "s-u")     'up-list)
(global-set-key (kbd "C-x M-f") 'counsel-file-jump) ; or find-name-dired, counsel-fzf
(global-set-key (kbd "C-c M-f") 'counsel-git-grep)
(global-set-key (kbd "C-c d")   (lambda () (interactive) (desktop-save octaspire/desktop-dir)))
(global-set-key (kbd "C-c M-d") (lambda () (interactive) (desktop-read octaspire/desktop-dir)))

(put 'narrow-to-region 'disabled nil)