浏览代码

Added `python-x` powered python cell dispatch

Eiyeron Fulmincendii 6 年之前
父节点
当前提交
554362481e
共有 2 个文件被更改,包括 13 次插入0 次删除
  1. 9 0
      config.org
  2. 4 0
      packages.el

+ 9 - 0
config.org

@@ -91,6 +91,15 @@ increased boot time.
 (setq doom-modeline-continuous-word-count-modes
       '(markdown-mode gfm-mode org-mode))
 #+END_SRC
+* Python
+** Python-x
+Python-x allows me to have the same cell-based workflow than on Jupter or
+Spyder. I'd like also to use similar separators to what I currently use (~# %%~).
+#+BEGIN_SRC emacs-lisp
+(after! python
+  (python-x-setup)
+  (setq python-section-delimiter "# %%"))
+#+END_SRC
 * Org-Mode
 ** STRT Org location
 I have usually two locations for my own note repository. On Windows, I like to

+ 4 - 0
packages.el

@@ -12,5 +12,9 @@
 
 ;; Graphviz, I love graphes!
 (package! graphviz-dot-mode)
+
+;; IPython-like cell handling
+(package! python-x)
+
 ;; Org-brain, my friend!
 (package! org-brain)