aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2023-08-27 08:15:27 -0700
committercolin <colin@cicadas.surf>2023-08-27 08:15:27 -0700
commit4bbb24256eff216f4118200c630023a4c54560e6 (patch)
tree6d1a0c7e6310bbc06f612790c62080624451b842
parent2d0a3f27c13fbf314d6193c26f0ede6ba237aeec (diff)
python ide, shortcut to insert funny chars,
-rw-r--r--init-el.org135
1 files changed, 88 insertions, 47 deletions
diff --git a/init-el.org b/init-el.org
index f025e92..3b54a34 100644
--- a/init-el.org
+++ b/init-el.org
@@ -100,6 +100,7 @@ New in emacs 28, native compilation can be enabled:
<<my-leader-key-toplevel-menu>>
<<my-leader-key-major-mode-menu>>
<<my-leader-key-applications-menu>>
+<<my-special-inserts>>
#+end_src
I have written a custom leader key system called "my-leader-keys". A
@@ -179,7 +180,6 @@ New in emacs 28, native compilation can be enabled:
(setf my-major-mode-list
'(;(haxe-mode my-haxe-mode-command)
(org-mode my-org-command)
- ;(zettel-mode my-zettel-mode-command)
(slime-repl-mode my-lisp-mode-command)
(pdf-view-mode my-pdf-view-mod-command)
(lisp-mode my-lisp-mode-command)))
@@ -227,7 +227,27 @@ New in emacs 28, native compilation can be enabled:
(insert what))))
(def-my-command my-special-insert
- `((?l "[l] λ" ,(inserter "λ"))))
+ `((?l "[l] λ" ,(inserter "λ"))
+ (?a "[a] α" ,(inserter "α"))
+ (?b "[b] β" ,(inserter "β"))
+ (?g "[g] γ" ,(inserter "γ"))
+ (?p "[p] π" ,(inserter "π"))
+ (?f "[f] φ" ,(inserter "φ"))
+ (?^ "[^] ↑" ,(inserter "↑"))
+ (?v "[v] ↓" ,(inserter "↓"))
+ (?> "[>] →" ,(inserter "→"))
+ (?< "[<] ←" ,(inserter "←"))
+ (?A "[A] ∀" ,(inserter "∀"))
+ (?E "[E] ∃" ,(inserter "∃"))
+ (?. "[.] ·" ,(inserter "·"))
+ (?x "[x] ×" ,(inserter "×"))
+ (?X "[X] ⊗" ,(inserter "⊗"))
+ (?+ "[+] ⊕" ,(inserter "⊕"))
+ (?/ "[/] ÷" ,(inserter "÷"))
+ (?U "[U] ∪" ,(inserter "∪"))
+ (?I "[I] ∩" ,(inserter "∩"))
+ (?& "[&] ∧" ,(inserter "∧"))
+ (?| "[|] ∨" ,(inserter "∨"))))
#+end_src
@@ -333,6 +353,8 @@ New in emacs 28, native compilation can be enabled:
(C . t)
(shell . t)))
+(setf org-src-window-setup 'current-window)
+
#+end_src
@@ -457,7 +479,6 @@ e.g. here's one for org capture
#+begin_src elisp :noweb no-export :results none
;;; UI
<<ui-chrome-config>>
-<<ui-modeline-config>>
<<ui-tweaks-config>>
<<ui-fonts-config>>
<<ui-bells-and-wistles>>
@@ -492,36 +513,27 @@ e.g. here's one for org capture
#+name: ui-chrome-config
#+begin_src elisp :results none
- ;; UI Chrome
-
- (blink-cursor-mode 0)
- (setq-default cursor-type 'box)
- (menu-bar-mode 0)
- (tool-bar-mode 0)
- (scroll-bar-mode -1)
- (toggle-frame-maximized)
- ; (toggle-frame-fullscreen)
-
-
- (defun transparency (value)
- "Sets the transparency of the frame window. 0=transparent/100=opaque"
- (interactive (let* ((prompt (concat "Transparency Value 0 - 100 opaque ["
- (prin1-to-string (frame-parameter (selected-frame) 'alpha))
- "]:"))
- (input (read-number prompt)))
- (list input)))
- (set-frame-parameter (selected-frame) 'alpha value))
+ ;; UI Chrome
- #+end_src
+ (blink-cursor-mode 0)
+ (setq-default cursor-type 'box)
+ (menu-bar-mode 0)
+ (tool-bar-mode 0)
+ (scroll-bar-mode -1)
+ (toggle-frame-fullscreen)
-** Modeline Config
-#+name: ui-modeline-config
-#+begin_src elisp :results none
-;; (package-install 'doom-modeline)
-;; (require 'doom-modeline)
-;; (doom-modeline-mode 1)
-#+end_src
+ (defun transparency (value)
+ "Sets the transparency of the frame window. 0=transparent/100=opaque"
+ (interactive (let* ((prompt (concat "Transparency Value 0 - 100 opaque ["
+ (prin1-to-string (frame-parameter (selected-frame) 'alpha))
+ "]:"))
+ (input (read-number prompt)))
+ (list input)))
+ (set-frame-parameter (selected-frame) 'alpha value))
+
+ #+end_src
+
** Tweaks
Bits and bobs.
@@ -555,8 +567,6 @@ e.g. here's one for org capture
#+end_src
-** My Leader Keys
-
** Completions Engine
#+name: ui-completion-engine
@@ -687,12 +697,10 @@ e.g. here's one for org capture
wildcharm-theme
goose-theme
poet-theme
- nezburn-theme
- sunburn-theme
moe-theme
+ tao-theme
solarized-theme
- twilight-bright-theme
- zweilight-theme))
+ twilight-bright-theme))
(dolist (package my-installed-themes)
@@ -710,16 +718,15 @@ e.g. here's one for org capture
'(modus-operandi-tritanopia
twilight-bright
moe-light
+ tao-yang
solarized-selenized-light
goose
- sunburn
moe-dark
solarized-selenized-dark
yoshi
sweet
- nezburn
+ tao-yin
wildcharm
- zweilight
modus-vivendi))
(setq *writing-themes*
@@ -763,7 +770,7 @@ e.g. here's one for org capture
(defun my-theme-linum-mode-cycler ()
"sometimes cycling themes when linum mode is on causes screwy display. cycling helps."
- (when (symbol-value linum-mode)
+ (when (and (boundp 'linum-mode) (symbol-value linum-mode))
(linum-mode -10)
(linum-mode)))
@@ -923,6 +930,11 @@ stand up and move around.
(require 'calfw)
(require 'calfw-org)
+(custom-set-variables
+ '(cfw:org-capture-template
+ '("c" "Calendar" entry
+ (file+headline "~/notes/deft/project-Planner.org" "CALENDAR")
+ "* %?\n %(cfg:org-capture-day)")))
#+end_src
@@ -947,6 +959,7 @@ stand up and move around.
** Org Capture
+
#+name:org-capture-config
#+begin_src elisp :results none
@@ -955,10 +968,15 @@ stand up and move around.
(
("w" "Web" entry
(file+olp+datetree "~/notes/deft/Web.org" "Weblink")
- "* TOREAD %:annotation \n\n %i\n\n")
- ("i" "Inbox" entry
- (file+headline "~/notes/deft/project-Planner.org" "INBOX")
- "")
+ "* TOREAD %:annotation \n\n#+begin_quote\n\n%i\n\n#+end_quote\n\n"
+ :immediate-finish t
+ :empty-lines 1
+ :prepend t)
+ ("n" "Note" entry
+ (file+olp "~/notes/deft/project-Planner.org" "Notes")
+ "* %U\n\n %F\n\n"
+ :prepend t
+ :empty-lines 1)
("j" "Journal" entry
(file+olp+datetree "~/notes/circadian.org.cpt")
"")
@@ -966,9 +984,6 @@ stand up and move around.
(file+headline "~/notes/deft/project-Planner.org" "CALENDAR")
"* %?\n %(cfw:org-capture-day)"))))
-;; ("i" "Inbox" entry
-;; (file "~/notes/deft/project-Inbox.org")
-;; "")
#+end_src
** Org Agenda
@@ -1135,6 +1150,7 @@ stand up and move around.
(setq elfeed-feeds
'(("https://harpers.org/feed" culture politics news)
("https://solar.lowtechmagazine.com/posts/index.xml" technology)
+ ("http://planet.lisp.org/rss20.xml" lisp blog)
("http://feeds.feedburner.com/FutilityCloset" art culture)
("http://feeds2.feedburner.com/NoTechMagazine" technology)
("http://www.thingsmagazine.net/feed" art culture)
@@ -1143,8 +1159,10 @@ stand up and move around.
("https://www.noemamag.com/feed" culture technology)
("https://theconvivialsociety.substack.com/feed" technology culture philosophy)
("https://daily.jstor.org/feed" news)
+ ("https://www.merriam-webster.com/wotd/feed/rss2" wordoday)
("https://www.viruscomix.com/rss.xml" comics)
("https://smbc-comics.com/rss.php" comics)
+ ("https://www.science.org/blogs/pipeline/feed" science news)
("https://existentialcomics.com/rss.xml" comics)
("https://journal.stuffwithstuff.com/rss.xml" programming blog)
("https://rss.slashdot.org/Slashdot/slashdotMain" tech news)))
@@ -1268,6 +1286,8 @@ stand up and move around.
<<haxe-config>>
+<<python-config>>
+
#+end_src
** Literate Programming
@@ -1620,6 +1640,27 @@ from debian contrib
: Package ‘haxe-mode’ installed.
+** Python
+#+name: python-config
+#+begin_src elisp :noweb no-export
+
+(package-install 'pyvenv)
+(setenv "WORKON_HOME" "~/miniconda3/envs")
+(pyvenv-mode 1)
+
+
+(package-install 'elpy)
+(elpy-enable)
+
+(setq python-shell-interpreter "jupyter"
+ python-shell-interpreter-args "console --simple-prompt"
+ python-shell-prompt-detect-failure-warning nil)
+(add-to-list 'python-shell-completion-native-disabled-interpreters
+ "jupyter")
+#+end_src
+
+#+RESULTS: python-config
+| jupyter | pypy |
* Tools
#+name: tools-config