#+END_SRC
* Early init
-This file was introduced in Emacs 27. I use it for speeding up init, removing all the UI stuff I don't want, etc. Maybe superfluous, but I do get startup times on the order of /0.015/ seconds. No longer superfluous, because this is where you set up the items needed for android emacs to play nice with termux - see [[https://sourceforge.net/projects/android-ports-for-gnu-emacs/files/termux][SourceForge]]
+This file was introduced in Emacs 27. I use it for speeding up init, removing all the UI stuff I don't want, etc. Maybe superfluous, but I do get startup times on the order of /0.015/ seconds on Windows.
** The normal header
There are no GNU Police (yet), but I feel nicer by adding this in.
;; Code:
#+END_SRC
-** Android Setup
-Version 30.0 brings android support - let's try it out. This makes emacs play nice with termux. See [[https://sourceforge.net/projects/android-ports-for-gnu-emacs/files/termux][SourceForge]].
-#+BEGIN_SRC emacs-lisp :tangle ./early-init.el
-(when (equal system-type 'android)
- (defvar termux-path "/data/data/com.termux/files/usr/bin")
- (setenv "PATH" (format "%s:%s" termux-path
- (getenv "PATH")))
- (push termux-path exec-path))
-#+END_SRC
-
** GC thrashing
Set the GC threshold to max during startup, then set it back to a value that is somewhat more sane than the default /800kb/.
#+END_SRC
*** Packages I don't want on my work computers
-I don't need these on a windows PC or android.
+I don't need these on a windows PC.
#+BEGIN_SRC emacs-lisp
-(unless (or (equal system-type 'windows-nt)
- (equal system-type 'android))
+(unless (equal system-type 'windows-nt)
(use-package ledger-mode
:ensure t
:bind
- ((:map ledger-mode-map ("C-c s" . ledger-sort-buffer)))))
+ ((:map ledger-mode-map ("C-c s" . ledger-sort-buffer)))))
#+END_SRC
*** visual-fill-column
(corfu-popupinfo-delay '(nil . 0.01))
(corfu-popupinfo-hide nil)
:config
- (corfu-popupinfo-mode)
- :bind
- ((:map corfu-map ("C-h" . corfu-popupinfo-toggle))))
+ (corfu-popupinfo-mode))
+ ;; :bind
+ ;; ((:map corfu-map ("C-h" . corfu-popupinfo-toggle))))
#+END_SRC
*** expand-region
*** acme-mouse
Not a package in the strict sense, just a .el file loaded as a git submodule - forked from [[https://github.com/akrito/acme-mouse/]] to [[https://github.com/rearman/acme-mouse/]] and modified to meet changes to the old =cl= package, and to fix the ~mouse-3~ search function. Also see the [[id:451a20e6-73a0-4d55-aeaa-e795980a6974][Maus]] section.
#+BEGIN_SRC emacs-lisp
-(unless (equal system-type 'android)
- (add-to-list 'load-path (concat user-emacs-directory "acme-mouse/"))
- (require 'acme-mouse))
+(add-to-list 'load-path (concat user-emacs-directory "acme-mouse/"))
+(require 'acme-mouse)
#+END_SRC
*** AUCTeX
:END:
Don't follow links with mouse-1, so I can select without having to use the keyboard (when I want to).
#+BEGIN_SRC emacs-lisp
-(unless (equal system-type 'android)
- (setq mouse-1-click-follows-link nil))
+(setq mouse-1-click-follows-link nil)
#+END_SRC
*** Buffer looks
#+END_SRC
****** =C-h=
-We already have =F1= for help.
+We already have =F1= for help. Use this setup instead of ~key-translate~ because that doesn't work whun running the daemon.
#+BEGIN_SRC emacs-lisp
-(keyboard-translate ?\C-h ?\C-?)
+(keymap-set key-translation-map "C-h" "<DEL>")
#+END_SRC
**** Moving
*** *NIX
These defuns are here so that I can use doas/sudo over tramp to edit /local/ files requiring root permissions. Doas for BSD, Sudo for Linux, nothing for Windows.
#+BEGIN_SRC emacs-lisp
-(unless (or (equal system-type 'windows-nt)
- (equal system-type 'android))
+(unless (equal system-type 'windows-nt)
(if(equal system-type 'berkeley-unix)
(defun doas ()
"Use TRAMP to reopen the current buffer as root using doas."
#+BEGIN_SRC emacs-lisp
(setq org-goto-interface 'outline-path-completion
org-outline-path-complete-in-steps nil
- org-goto-max-level 3)
+ org-goto-max-level 20)
#+END_SRC
*** Special keys & subtree yanking