mirror of
http://github.com/JaeUs3792/dotfiles
synced 2025-12-14 08:01:35 +09:00
Emacs : some updates
This commit is contained in:
@ -21,6 +21,10 @@
|
|||||||
;;(require 'rational-windows)
|
;;(require 'rational-windows)
|
||||||
(require 'rational-use-package)
|
(require 'rational-use-package)
|
||||||
|
|
||||||
|
;; Load auctex
|
||||||
|
(load "auctex.el" nil t t)
|
||||||
|
(load "preview-latex.el" nil t t)
|
||||||
|
|
||||||
;; backup in one place. flat, no tree structure
|
;; backup in one place. flat, no tree structure
|
||||||
(setq backup-directory-alist '(("." . "~/.emacs.rational.d/backups")))
|
(setq backup-directory-alist '(("." . "~/.emacs.rational.d/backups")))
|
||||||
(customize-set-variable
|
(customize-set-variable
|
||||||
@ -383,11 +387,11 @@
|
|||||||
"avi" "wmv" "wav" "mov" "flv"
|
"avi" "wmv" "wav" "mov" "flv"
|
||||||
"ogm" "ogg" "mkv"))
|
"ogm" "ogg" "mkv"))
|
||||||
"mpv"
|
"mpv"
|
||||||
|
'(file))
|
||||||
|
(list (openwith-make-extension-regexp
|
||||||
|
'("pdf"))
|
||||||
|
"evince"
|
||||||
'(file)))))
|
'(file)))))
|
||||||
;;(list (openwith-make-extension-regexp
|
|
||||||
;; '("pdf"))
|
|
||||||
;; "evince"
|
|
||||||
;; '(file)))))
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;;; Magit
|
;;;; Magit
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
@ -495,14 +499,19 @@
|
|||||||
(setq org-log-into-drawer t)
|
(setq org-log-into-drawer t)
|
||||||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.8)))
|
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.8)))
|
||||||
|
|
||||||
(use-package org-superstar :straight t :after org :hook (org-mode . org-superstar-mode))
|
(use-package org-superstar :straight t :after org :hook (org-mode . org-superstar-mode))
|
||||||
(use-package org-attach-screenshot :straight t)
|
(use-package org-attach-screenshot :straight t)
|
||||||
(use-package org-download :straight t)
|
(use-package org-download
|
||||||
|
:straight t
|
||||||
|
:config
|
||||||
|
(setq-default org-download-image-dir "./images")
|
||||||
|
(setq-default org-download-heading-lvl nil))
|
||||||
|
(add-hook 'dired-mode-hook 'org-download-enable)
|
||||||
|
|
||||||
(defun efs/org-mode-visual-fill ()
|
(defun efs/org-mode-visual-fill ()
|
||||||
(setq visual-fill-column-width 100
|
(setq visual-fill-column-width 100
|
||||||
visual-fill-column-center-text t)
|
visual-fill-column-center-text t)
|
||||||
(visual-fill-column-mode 1))
|
(visual-fill-column-mode 1))
|
||||||
|
|
||||||
(use-package visual-fill-column
|
(use-package visual-fill-column
|
||||||
:straight t
|
:straight t
|
||||||
@ -671,7 +680,7 @@
|
|||||||
;; Python & Jupyter
|
;; Python & Jupyter
|
||||||
(python . t)
|
(python . t)
|
||||||
(jupyter . t)))
|
(jupyter . t)))
|
||||||
(org-babel-jupyter-override-src-block "python")
|
;;(org-babel-jupyter-override-src-block "python")
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;;; Eshell
|
;;;; Eshell
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|||||||
@ -65,8 +65,8 @@
|
|||||||
(setq exwm-workspace-warp-cursor t)
|
(setq exwm-workspace-warp-cursor t)
|
||||||
|
|
||||||
;; Window focus should follow the mouse pointer
|
;; Window focus should follow the mouse pointer
|
||||||
(setq mouse-autoselect-window t
|
;;(setq mouse-autoselect-window t
|
||||||
focus-follows-mouse t)
|
;; focus-follows-mouse t)
|
||||||
|
|
||||||
(add-hook 'exwm-floating-setup-hook
|
(add-hook 'exwm-floating-setup-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,5 @@
|
|||||||
.ssh/*
|
.ssh/*
|
||||||
!.ssh/config
|
!.ssh/config
|
||||||
|
/.emacs.rational.d/backups/
|
||||||
|
/.emacs.rational.d/var/
|
||||||
|
/.emacs.rational.d/undo/
|
||||||
|
|||||||
Reference in New Issue
Block a user