Skip to content

Commit

Permalink
Minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
lyderichti59 committed May 29, 2024
1 parent cd68483 commit dfc5c93
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion personal/custom.el
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Captured On: %U")))
(sequence "TODO(t)" "NEXT(n)" "WIP(w)" "DONE(d)")))
'(org-use-fast-todo-selection 'expert)
'(package-selected-packages
'(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 gitignore-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 gitignore-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/preload/user_preload.el
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
'(lsp-face-highlight-read ((t (:inherit highlight)))))

(unless package-archive-contents
(package-refresh-contents))
(message "Refreshing package contents, this may take a while or hang if this laptop has no internet connection...")
(package-refresh-contents))

;; Setting personal theme
(unless (package-installed-p 'dracula-theme)
Expand Down
20 changes: 10 additions & 10 deletions personal/user_config.el
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
;;;;;;;;;;;;;;;;;;
;; HOST
;;;;;;;;;;;;;;;;;;
(setq desktop (if (file-exists-p "~/Bureau/") "~/Bureau/" "~/Desktop/"))
(setq desktop (if (file-exists-p "~/Desktop/") "~/Desktop/" "~/Bureau/"))

;;;;;;;;;;;;;;;;;;
;; UI
Expand All @@ -24,6 +24,7 @@

(customize-dracula)
(global-whitespace-mode 0)

;; Beautiful modeline on the bottom (less verbose than the default one and
;; supports GUI components)
(defun setup-doom-modeline-icons (&optional frame)
Expand Down Expand Up @@ -150,12 +151,7 @@

;; Org mode tuning
(load-library "find-lisp")
(defun update-org-files ()
(interactive)
(setq org-agenda-files
(find-lisp-find-files (concat desktop "braindump") "\.org$")))
(update-org-files)

(setq org-agenda-files (directory-files-recursively (concat desktop "braindump") "\.org$"))
(setq org-directory (concat desktop "braindump"))
(setq org-replace-disputed-keys 1)
(add-hook 'org-shiftup-final-hook 'windmove-up)
Expand Down Expand Up @@ -194,7 +190,6 @@
(setq neo-autorefresh t)
(require 'neotree)

(global-set-key [f8] 'neotree-show)
(cl-case window-system
(mac (setq neo-default-system-application "open"))
(ns (setq neo-default-system-application "open")))
Expand Down Expand Up @@ -229,7 +224,7 @@
:hook
(after-init . org-roam-mode)
:custom
(org-roam-directory "~/Bureau/braindump/public")
(org-roam-directory (concat desktop "braindump/public"))
:bind (:map org-roam-mode-map
(("C-c n l" . org-roam)
("C-c n f" . org-roam-find-file)
Expand Down Expand Up @@ -485,15 +480,20 @@ server-after-make-frame-functions to use Fira Code with emacs --daemon and emacs
(interactive)
(find-file (concat desktop "braindump/private/random.org")))

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


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

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

;; CSV FILES
;;;;;;;;;;;;;;;;;;;;;;;;
(require 'csv-highlight)
(global-set-key (kbd "<f6>") (lambda() (interactive)(find-file "~/Bureau/braindump/private/random.org")))

;; DOTFILES
;;;;;;;;;;;;;;;;;;;;;;;
Expand Down

0 comments on commit dfc5c93

Please sign in to comment.