2022-04-22 02:54:47 +00:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; /data/data/com.termux/files/home/storage/shared/.emacs
|
2023-04-07 21:36:08 +00:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
(setq org-habit-graph-column 60)
|
|
|
|
|
2022-04-22 02:54:47 +00:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
; Open main files used as 'gateway' to everything else (Mobile)
|
2023-04-07 21:10:23 +00:00
|
|
|
(find-file "~/org/health/health_houdini.org")
|
|
|
|
(find-file "~/org/health/health_mike.org")
|
2023-02-13 13:35:34 +00:00
|
|
|
(find-file "~/storage/shared/org/orgzly/_habits.org")
|
2023-02-13 13:29:18 +00:00
|
|
|
(find-file "~/storage/shared/org/orgzly/_todo.org")
|
2023-04-07 21:36:08 +00:00
|
|
|
(find-file "~/storage/shared/org/orgzly/_slipbox.org")
|
2022-04-22 02:54:47 +00:00
|
|
|
(find-file "~/storage/shared/org/_index.org")
|
|
|
|
|
|
|
|
; Personal startup screen - orgmode agenda with all TODO (Mobile)
|
2022-08-26 19:58:28 +00:00
|
|
|
(add-hook 'after-init-hook (lambda () (org-agenda nil "r")))
|
2022-04-22 02:54:47 +00:00
|
|
|
|
|
|
|
; Make sure emacs and org don't keep opening new windows (Mobile)
|
|
|
|
; Not enough screen real estate with on screen keyboards for that
|
|
|
|
(setq pop-up-windows nil)
|
|
|
|
(setq inhibit-same-window nil)
|
|
|
|
(setq inhibit-switch-frame nil)
|
|
|
|
(setq split-height-threshold 200)
|
|
|
|
(setq split-width-threshold 200)
|
|
|
|
(defun my-display-buffer-function (buf not-this-window)
|
|
|
|
(if (and (not pop-up-frames)
|
|
|
|
(one-window-p)
|
|
|
|
(or not-this-window
|
|
|
|
(not (eq (window-buffer (selected-window)) buf)))
|
|
|
|
(> (frame-width) 162))
|
|
|
|
(split-window-horizontally))
|
|
|
|
;; Note: Some modules sets `pop-up-windows' to t before calling
|
|
|
|
;; `display-buffer' -- Why, oh, why!
|
|
|
|
(let ((display-buffer-function nil)
|
|
|
|
(pop-up-windows nil))
|
|
|
|
(display-buffer buf not-this-window)))
|
|
|
|
|
|
|
|
(setq display-buffer-function 'my-display-buffer-function)
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|