emacs: add sage babel integration

This commit is contained in:
Marco Thomas
2021-10-07 18:46:37 +02:00
parent 7697ba94d4
commit fc3229b49a
2 changed files with 19 additions and 37 deletions

View File

@@ -9,43 +9,14 @@ set statusbar-v-padding 0
set show-scrollbars false set show-scrollbars false
# colors # colors
set notification-error-bg "#fafafa" # bg
set notification-error-fg "#9d0006" # bright:red
set notification-warning-bg "#fafafa" # bg
set notification-warning-fg "#b57614" # bright:yellow
set notification-bg "#fafafa" # bg
set notification-fg "#79740e" # bright:green
set completion-bg "#fafafa" # bg set completion-bg "#fafafa" # bg
set completion-fg "#3c3836" # fg set completion-fg "#5c6773" # fg
set completion-group-bg "#fafafa" # bg1
set completion-group-fg "#928374" # gray
set completion-highlight-bg "#689d6a" # aqua
set completion-highlight-fg "#fafafa gs" # bg2
# Define the color in index mode
set index-bg "#fafafa" # bg2
set index-fg "#3c3836" # fg
set index-active-bg "#689d6a" # aqua
set index-active-fg "#ebdbb2" # bg2
set inputbar-bg "#fafafa" # bg set inputbar-bg "#fafafa" # bg
set inputbar-fg "#3c3836" # fg set inputbar-fg "#5c6773" # fg
set statusbar-bg "#fafafa" # bg set statusbar-bg "#fafafa" # bg
set statusbar-fg "#3c3836" # fg set statusbar-fg "#5c6773" # fg
set highlight-color "#b57614" # bright:yellow
set highlight-active-color "#af3a03" # bright:orange
set default-bg "#fafafa" # bg set default-bg "#fafafa" # bg
set default-fg "#3c3836" # fg set default-fg "#5c6773" # fg
set render-loading true
set render-loading-bg "#fafafa" # bg
set render-loading-fg "#3c3836" # fg
# Recolor book content's color
set recolor-lightcolor "#fafafa" # bg
set recolor-darkcolor "#3c3836" # fg
set recolor "true"
set recolor-keephue "true"

View File

@@ -103,6 +103,7 @@
;;; KEYBIND STUFF ;;; KEYBIND STUFF
;;; ;;;
;; General ;; General
(use-package general (use-package general
:straight t :straight t
@@ -267,7 +268,7 @@
(markdown-mode . dtrt-indent-mode)) (markdown-mode . dtrt-indent-mode))
;; Indentation for C ;; Indentation for C
(setq-default c-basic-offset 8) ;(setq-default c-basic-offset 8)
;; Auto parenthesis ;; Auto parenthesis
(use-package electric-pair (use-package electric-pair
@@ -298,6 +299,7 @@
;;; IVY ;;; IVY
;;; ;;;
;; Completetion frontend for counsel ;; Completetion frontend for counsel
(use-package ivy (use-package ivy
:straight t :straight t
@@ -345,7 +347,6 @@
"oa" 'org-agenda "oa" 'org-agenda
"oca" 'org-capture "oca" 'org-capture
"oes" 'org-edit-src-code "oes" 'org-edit-src-code
"obe" 'org-babel-execute-src-block
"oti" 'org-toggle-inline-images "oti" 'org-toggle-inline-images
"odi" 'org-display-inline-images) "odi" 'org-display-inline-images)
:hook :hook
@@ -365,8 +366,9 @@
(define-key evil-normal-state-map (kbd "TAB") 'org-cycle) (define-key evil-normal-state-map (kbd "TAB") 'org-cycle)
(set-face-attribute 'org-document-title nil :font "Product Sans" :weight 'bold :inherit 'default :height 250) (set-face-attribute 'org-document-title nil :font "Product Sans" :weight 'bold :inherit 'default :height 250)
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5) (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5)
org-hidden-keywords '(title) org-hidden-keywords '(title) ; hide title
org-image-actual-width nil org-startup-with-inline-images t
org-image-actual-width nil ; rescale inline images
org-directory "~/org" org-directory "~/org"
org-agenda-files (quote ("~/org")) org-agenda-files (quote ("~/org"))
org-ellipsis "" org-ellipsis ""
@@ -390,6 +392,7 @@
"pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f")) "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"))
(org-babel-do-load-languages 'org-babel-load-languages '((python . t) (org-babel-do-load-languages 'org-babel-load-languages '((python . t)
(shell . t) (shell . t)
(haskell . t)
(C . t) (C . t)
(dot . t)))) (dot . t))))
@@ -443,6 +446,14 @@
:config :config
(setq graphviz-dot-indent-width 4)) (setq graphviz-dot-indent-width 4))
;; Sagemath for university
(use-package sage-shell-mode
:straight t)
;; Sagemath babel integration
(use-package ob-sagemath
:straight t)
;;; ;;;