Skip to content

Commit

Permalink
Fixed invasive file opening at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
lyderichti59 committed May 29, 2024
1 parent 21a7703 commit 0fb8fdc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 1 addition & 4 deletions personal/custom.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
'(custom-safe-themes
'("603a831e0f2e466480cdc633ba37a0b1ae3c3e9a4e90183833bc4def3421a961" "81c3de64d684e23455236abde277cda4b66509ef2c28f66e059aa925b8b12534" "57e3f215bef8784157991c4957965aa31bac935aca011b29d7d8e113a652b693" "2dff5f0b44a9e6c8644b2159414af72261e38686072e063aa66ee98a2faecf0e" default))
'(ediff-split-window-function 'split-window-horizontally)
'(editorconfig-exclude-modes '(org-mode))
'(exec-path-from-shell-variables
'("PATH" "MANPATH" "LEIN_USERNAME" "LEIN_PASSWORD" "NIX_PATH" "NOTMUCH_CONFIG" "PASSWORD_STORE_DIR"))
'(fira-code-mode-disabled-ligature '("[]" "#{" "#(" "#_" "#_(" "x"))
Expand Down Expand Up @@ -87,7 +86,6 @@ Captured On: %U
"Inbox")
"* %? [[%:link][%:description]]
Captured On: %U")))
'(org-directory "~/Bureau/braindump/")
'(org-link-frame-setup
'((vm . vm-visit-folder-other-frame)
(vm-imap . vm-visit-imap-folder-other-frame)
Expand Down Expand Up @@ -116,8 +114,7 @@ Captured On: %U")))
(sequence "TODO(t)" "NEXT(n)" "WIP(w)" "DONE(d)")))
'(org-use-fast-todo-selection 'expert)
'(package-selected-packages
'(dotenv-mode editorconfig paredit gnu-elpa-keyring-update hcl-mode persp-projectile perspective ripgrep projectile-ripgrep csv helm-nixos-options company-nixos-options image+ plantuml-mode dockerfile-mode csv-mode js2-mode windresize vterm-toggle vterm centaur-tabs counsel-projectile helpful doom-modeline lsp-treemacs nix-mode rjsx-mode tldr helm-projectile helm async avy bind-key dash dash-functional gh git-commit ht inflections logito lsp-mode markdown-mode marshal multiple-cursors pcache prescient transient with-editor rust-mode org-roam visual-regexp-steroids visual-regexp all-the-icons-dired all-the-icons-ivy-rich all-the-icons neotree tagedit scss-mode anakondo docker-compose-mode aggressive-indent pretty-symbols fira-code-mode use-package ta clojure-snippets afternoon-theme flycheck-clj-kondo command-log-mode clj-refactor cider clojure-mode-extra-font-locking clojure-mode yaml-mode web-mode lsp-ui json-mode rainbow-mode elisp-slime-nav rainbow-delimiters company counsel swiper ivy-prescient ivy exec-path-from-shell zop-to-char zenburn-theme which-key volatile-highlights undo-tree super-save smartrep smartparens operate-on-number move-text magit projectile imenu-anywhere hl-todo guru-mode
git-timemachine gist flycheck expand-region epl easy-kill diminish diff-hl discover-my-major crux browse-kill-ring anzu ag ace-window))
'(dotenv-mode editorconfig paredit gnu-elpa-keyring-update hcl-mode persp-projectile perspective ripgrep projectile-ripgrep csv helm-nixos-options company-nixos-options image+ plantuml-mode dockerfile-mode csv-mode js2-mode windresize vterm-toggle vterm centaur-tabs counsel-projectile helpful doom-modeline lsp-treemacs nix-mode rjsx-mode tldr helm-projectile helm async avy bind-key dash dash-functional gh git-commit ht inflections logito lsp-mode markdown-mode marshal multiple-cursors pcache prescient transient with-editor rust-mode org-roam visual-regexp-steroids visual-regexp all-the-icons-dired all-the-icons-ivy-rich all-the-icons neotree tagedit scss-mode anakondo docker-compose-mode aggressive-indent pretty-symbols fira-code-mode use-package ta clojure-snippets afternoon-theme flycheck-clj-kondo command-log-mode clj-refactor cider clojure-mode-extra-font-locking clojure-mode yaml-mode web-mode lsp-ui json-mode rainbow-mode elisp-slime-nav rainbow-delimiters company counsel swiper ivy-prescient ivy exec-path-from-shell zop-to-char zenburn-theme which-key volatile-highlights undo-tree super-save smartrep smartparens operate-on-number move-text magit projectile imenu-anywhere hl-todo guru-mode git-timemachine gist flycheck expand-region epl easy-kill diminish diff-hl discover-my-major crux browse-kill-ring anzu ag ace-window))
'(plantuml-default-exec-mode 'jar)
'(plantuml-jar-path "/Users/lyderic.dutillieux/bin/plantuml.jar")
'(prelude-flyspell nil)
Expand Down
3 changes: 2 additions & 1 deletion personal/sublima.el
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@


;; Open scratch buffers on startup
(find-file (concat sublima-cache-directory "/*") t)
(dolist (scratch-file (file-expand-wildcards (concat sublima-cache-directory "/scratch-*")))
(find-file scratch-file))


;; Auto Save Scratch buffers on focus lost
Expand Down
9 changes: 5 additions & 4 deletions personal/user_config.el
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@

;; Org mode tuning
(load-library "find-lisp")
(setq org-agenda-files (directory-files-recursively (concat desktop "braindump") "\.org$"))
;(setq org-agenda-files (directory-files-recursively (concat desktop "braindump") "\.org$")) ; This opens all files in new buffers, keep commented to avoid that
(setq org-directory (concat desktop "braindump"))
(setq org-replace-disputed-keys 1)
(add-hook 'org-shiftup-final-hook 'windmove-up)
Expand Down Expand Up @@ -482,18 +482,19 @@ server-after-make-frame-functions to use Fira Code with emacs --daemon and emacs
;; Note taking with a shortcut
(defun open-notes ()
(interactive)
(find-file (concat desktop "braindump/private/random.org")))
(find-file (concat desktop "braindump/private/index.org")))

(defun open-config ()
(interactive)
(find-file (concat user-emacs-directory "personal/user_config.el")))


(load (concat user-emacs-directory "personal/sublima.el"))
(open-notes)

(global-set-key [f6] 'open-notes)
(global-set-key [f7] 'sublima-scratch)
(global-set-key [f9] 'open-config)
(global-set-key [f7] 'sublima-scratch)


;; CSV FILES
;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down

0 comments on commit 0fb8fdc

Please sign in to comment.