Skip to content

Commit

Permalink
Moar Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gopar committed May 20, 2024
1 parent 4e0f105 commit 8030a12
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 51 deletions.
59 changes: 39 additions & 20 deletions README.org
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#+TITLE: Emacs Configuration
#+PROPERTY: header-args :tangle README.el

* Emacs Configuration
My Emacs config as an org document.
My Emacs Configuration as an org file cause I wanna be like the cool kids 😎

**NOTE:** This is a mess, unorganized but it works for me.
* NOTE
This is a mess, unorganized but it works for me.
No plan to clean this up. This config will most likely not work for you since its made for me.
We are all different. Thanks for coming to my Ted Talk

Expand Down Expand Up @@ -273,7 +273,7 @@ next potential sentence end"
(diary-comment-end ""))
#+end_src

** Appt
** COMMENT Appt
Appointment reminder
#+begin_src emacs-lisp
(use-package appt
Expand Down Expand Up @@ -426,7 +426,9 @@ Main configuration
(use-package org-agenda
:after org
:bind (("C-c a" . org-agenda))
;; :hook (org-agenda-finalize . org-agenda-entry-text-mode)
:hook ((org-agenda-finalize . hl-line-mode)
;; (org-agenda-finalize . org-agenda-entry-text-mode)
)
:custom
(org-agenda-current-time-string (if (and (display-graphic-p)
(char-displayable-p ?←)
Expand Down Expand Up @@ -1002,28 +1004,26 @@ Calling `C-u gopar/pydoc-at-point' closes the dedicated window."
#+end_src

*** Jedi
Only use this for eldoc documentation. Works most of the time.
Only use this for 'eldoc' documentation. Works most of the time.
I say 'eldoc' in quotes b/c this doens't really use eldoc.
It echos out the method/func signature instead of using eldoc.

Requires =pip install jedi epc= in all virtualenvs

*Note* For some reason the projects =python= env isn't loaded when we run the =shell-command=.
Workaround is set a timer to run 3 seconds after python is correctly set to avoid issues
#+begin_src emacs-lisp
(use-package jedi
:ensure t
:defer
:hook (python-mode . gopar/enable-jedi-if-found)
;; :hook (python-mode . (lambda () (run-at-time "3 sec" nil 'gopar/enable-jedi-if-found)))
:commands (jedi-mode)
:hook (python-mode . jedi-mode)
:custom
(jedi:tooltip-method nil)
:init
(defun gopar/enable-jedi-if-found ()
"Format the current buffer using the jedi program, if available."
(interactive)
(if (zerop (shell-command "python -c 'import jedi'"))
(jedi:setup))))
(jedi:mode-function nil)
(jedi:setup-function nil))
#+end_src

*** [[https://github.com/AdamNiederer/cov][Cov]]
*** COMMENT [[https://github.com/AdamNiederer/cov][Cov]]
Actually don't use this as much
#+begin_src emacs-lisp
(use-package cov
:ensure t
Expand Down Expand Up @@ -1311,6 +1311,7 @@ Look up word at point using dict.org in readme/text/org-mode buffers
:ensure nil
:defer
:hook ((prog-mode . subword-mode)
(prog-mode . hl-line-mode)
(prog-mode . (lambda () (setq-local fill-column 120)))))
#+end_src

Expand Down Expand Up @@ -1480,7 +1481,7 @@ Also includes displaying of them
:ensure t
:init
(setq cape-dabbrev-min-length 2)
(setq cape-dabbrev-check-other-buffers 'some)
(setq cape-dabbrev-check-other-buffers 'cape--buffers-major-mode)
(add-to-list 'completion-at-point-functions #'cape-dabbrev)
(add-to-list 'completion-at-point-functions #'cape-file)
;; (add-to-list 'completion-at-point-functions #'cape-history)
Expand Down Expand Up @@ -1677,6 +1678,11 @@ A basic 'go to' functionality that works really well. So I don't need LSP
(use-package emmet-mode
:ensure t
:defer t
:config
(defun emmet-jsx-supported-mode? ()
"Is the current mode we're on enabled for jsx class attribute expansion?"
(or (member major-mode emmet-jsx-major-modes)
(and (string= major-mode "web-mode") (string= web-mode-content-type "jsx"))))
:hook (web-mode . emmet-mode))
#+end_src

Expand Down Expand Up @@ -2563,10 +2569,23 @@ Also start type break mode after start up since I might just be dragging along
(use-package vterm
:ensure t
:defer
:bind (:map vterm-mode-map
("<f6>" . vterm-toggle ))
:custom
(vterm-max-scrollback 100000))
#+end_src

** Vterm Toggle
#+begin_src emacs-lisp
(use-package vterm-toggle
:ensure t
:bind ("<f6>" . vterm-toggle )
:custom
(vterm-toggle-scope 'project)
(vterm-toggle-project-root t)
)
#+end_src

** [[https://github.com/astoff/devdocs.el][Devdocs]]
#+begin_src emacs-lisp
(use-package devdocs
Expand Down Expand Up @@ -3073,8 +3092,8 @@ Functions that are handy for setting up recording in youtube
* End
#+begin_src emacs-lisp
(progn
(add-to-list 'default-frame-alist `(font . "Hack 15"))
(set-face-attribute 'default nil :font "Hack 15"))
(add-to-list 'default-frame-alist `(font . "Hack 16"))
(set-face-attribute 'default nil :font "Hack 16"))
#+end_src

;;; Local Variables: ***
Expand Down
59 changes: 29 additions & 30 deletions etc/diary
Original file line number Diff line number Diff line change
@@ -1,40 +1,39 @@
;; Upkeep
%%(diary-cyclic 7 3 10 2024) 08:00-08:15 📓 12 Week Year Review ;; warntime 10
%%(diary-cyclic 7 3 10 2024) 08:15-08:30 Finances ;; warntime 2
%%(diary-cyclic 7 3 10 2024) 18:00-18:40 GTD Focus
;; %%(diary-cyclic 7 3 10 2024) 08:00-08:15 📓 12 Week Year Review ;; warntime 10
;; %%(diary-cyclic 7 3 10 2024) 08:15-08:30 Finances ;; warntime 2
;; %%(diary-cyclic 7 3 10 2024) 18:00-18:40 GTD Focus

%%(diary-cyclic 7 3 15 2024) 18:30-18:55 Bachata
;; %%(diary-cyclic 7 3 15 2024) 18:30-18:55 Bachata

;; Health
%%(diary-cyclic 7 3 10 2024) 13:00-16:00 Gym & Rock Climbing
%%(diary-cyclic 7 3 12 2024) 02:30-04:30 Gym & Rock Climbing
%%(diary-cyclic 7 3 14 2024) 03:30-05:30 Gym & Rock Climbing
;; ;; Health
;; %%(diary-cyclic 7 3 10 2024) 13:00-16:00 Gym & Rock Climbing
;; %%(diary-cyclic 7 3 12 2024) 02:30-04:30 Gym & Rock Climbing
;; %%(diary-cyclic 7 3 14 2024) 03:30-05:30 Gym & Rock Climbing

%%(diary-cyclic 1 1 1 2024) 21:00-21:20 Headrest
;; %%(diary-cyclic 1 1 1 2024) 21:00-21:20 Headrest

;; Work
%%(and (memq (calendar-day-of-week date) '(1 2 3 4 5)) (diary-cyclic 1 1 2 2024)) 08:00-08:30 [Wells] Standup
%%(diary-cyclic 7 1 4 2024) 14:00-15:00 [Wells] Jira Meeting
%%(diary-cyclic 7 1 22 2024) 12:30-13:50 [Optional] Wells Meeting
%%(and (memq (calendar-day-of-week date) '(1 2 3 4 5)) (diary-cyclic 1 3 11 2024)) 13:30-13:45 [CarYak] Standup
;; ;; Work
;; %%(and (memq (calendar-day-of-week date) '(1 2 3 4 5)) (diary-cyclic 1 1 2 2024)) 08:00-08:30 [Wells] Standup ;; warntime 5
;; %%(diary-cyclic 7 1 4 2024) 14:00-15:00 [Wells] Jira Meeting ;; warntime 10
;; %%(diary-cyclic 7 1 22 2024) 12:30-13:50 [Optional] Wells Meeting ;; warntime 5
;; %%(and (memq (calendar-day-of-week date) '(1 2 3 4 5)) (diary-cyclic 1 3 11 2024)) 13:30-13:45 [CarYak] Standup ;; warntime 5

;; Social
;; ;; Social

;; 12WY
;; wednesday
%%(diary-cyclic 7 3 13 2024) 15:00-16:20 Practice Music ;; warntime 5
;; thursday
%%(diary-cyclic 7 3 14 2024) 19:00-19:40 Practice Music ;; warntime 5
;; Monday
%%(diary-cyclic 7 4 8 2024) 15:30-16:00 Bible Study ;; warntime 5
;; Wednesday
%%(diary-cyclic 7 4 10 2024) 16:30-17:00 Memorize Bible Verses ;; warntime 5
;; ;; 12WY
;; ;; wednesday
;; %%(diary-cyclic 7 3 13 2024) 15:00-16:20 Practice Music ;; warntime 5
;; ;; thursday
;; %%(diary-cyclic 7 3 14 2024) 19:00-19:40 Practice Music ;; warntime 5
;; ;; Monday
;; %%(diary-cyclic 7 4 8 2024) 15:30-16:00 Bible Study ;; warntime 5
;; ;; Wednesday
;; %%(diary-cyclic 7 4 10 2024) 16:30-17:00 Memorize Bible Verses ;; warntime 5

;; Faith
%%(diary-cyclic 7 3 9 2024) 18:30-21:00 Church
;; ;; Faith
;; %%(diary-cyclic 7 3 9 2024) 18:30-21:00 Church

;; GOOGLE APPEND
04/26/2024 13:30-13:55 Dentist
04/30/2024 09:30-09:55 Optometrist
05/03/2024 10:30-11:00 Dentist Filling
05/03/2024 18:00-21:00 Bouldering with BBC
05/24/2024 15:30-16:40 Flight to San Francisco (UA 5676)
05/24/2024 19:20-00:55 Flight to Honolulu (UA 638)
05/25/2024 20:00-23:00 Philharmonik at Torch Club
2 changes: 1 addition & 1 deletion org
Submodule org updated from 1b273d to 74726d

0 comments on commit 8030a12

Please sign in to comment.