Skip to content

Commit

Permalink
Delete: Opening init.org on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Musa Al-hassy committed Apr 16, 2024
1 parent be45dfb commit 4483e40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
18 changes: 1 addition & 17 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -1188,22 +1188,6 @@ if REMOTE is https://github.com/X/Y then LOCAL becomes ∼/Y."
;; Keep self motivated!
(setq frame-title-format '("" "%b - Living The Dream (•̀ᴗ•́)و"))

;; If work machine, then show notes; otherwise show my todos & init side-by-side.
(unless noninteractive
;; Only run the following when we're in GUI mode;
;; i.e., don't run it in Github Actions when testing.
(if (not my/personal-machine?)
(find-file "~/Documents/notes.org")
(find-file "~/Dropbox/todo.org"))
;; After startup, if Emacs is idle for 10 seconds, then open my work file;
;; which is a GPG file and so requires passphrase before other things can load.
;; (run-with-idle-timer 10 nil (lambda () (find-file "~/Desktop/work.org.gpg")))
(split-window-right) ;; C-x 3
(other-window 1) ;; C-x 0
(let ((enable-local-variables :all) ;; Load *all* locals.
(org-confirm-babel-evaluate nil)) ;; Eval *all* blocks.
(ignore-errors (find-file "~/.emacs.d/init.org"))))

;; The modeline looks really nice with doom-themes, e.g., doom-solarised-light.
(use-package doom-modeline
:defer nil
Expand Down Expand Up @@ -3327,7 +3311,7 @@ associated major mode; that's what we aim to do here."
;; empv:1 ends here

;; [[file:init.org::*DONE?][DONE?:1]]
(find-file "~/.emacs.d/init.org")
;; (find-file "~/.emacs.d/init.org")
(add-to-list 'default-frame-alist '(fullscreen . maximized))
(message-box "Done")
;; DONE?:1 ends here
4 changes: 2 additions & 2 deletions init.org
Original file line number Diff line number Diff line change
Expand Up @@ -4572,7 +4572,7 @@ as well as a nice ‘motto’:

I almost always have Emacs open; I don't need a dashboard, but would like to see
my to-do list and my init file, side-by-side.
#+BEGIN_SRC emacs-lisp
#+BEGIN_SRC emacs-lisp :tangle no
;; If work machine, then show notes; otherwise show my todos & init side-by-side.
(unless noninteractive
;; Only run the following when we're in GUI mode;
Expand Down Expand Up @@ -16043,7 +16043,7 @@ would be if I did not have a literate programming environment; i.e., Org-mode.
* DONE?

#+begin_src emacs-lisp :tangle "init.el"
(find-file "~/.emacs.d/init.org")
;; (find-file "~/.emacs.d/init.org")
(add-to-list 'default-frame-alist '(fullscreen . maximized))
(message-box "Done")
#+end_src
Expand Down

0 comments on commit 4483e40

Please sign in to comment.