代码拉取完成,页面将自动刷新
;; compile all: C-u 0 M-x byte-recompile-directory
;; 唯一不能用elc的只有packages\tabbar\tabbar.elc,删除之tabbar就正常了
;; 包不能放下面个目录,应该放plugin目录,否则require的时候找不到
;; (mapc 'load (directory-files "~/.emacs.d/settings" t "^[a-zA-Z0-9].*.el$"))
(load "~/.emacs.d/settings/better_default.el")
(load "~/.emacs.d/settings/gui.el")
(load "~/.emacs.d/settings/package_builtin.el")
(load "~/.emacs.d/settings/package_extra.el")
;; .emacs主要放针对不同机子要改变的数据!
;; 现在改进为根据登录用户名和系统版本来分别配置
(defun add-path-to-execute-path (path)
;; (setenv "PATH" (concat (getenv "PATH") path))
;; (setq exec-path (append exec-path (list path)))
(add-to-list 'exec-path path)
(setenv "PATH" (mapconcat #'identity exec-path path-separator)))
(add-path-to-execute-path
(expand-file-name "bin" user-emacs-directory))
(cond
;; home
((and (string-equal system-type "windows-nt")
(string-equal "WIN-6PRFQIFSB6O" (system-name))
(equal (list 6 1 7601) (w32-version)) ;; win7 64
)
(setq
org-directory "D:/autosync/autosync/org"
org-agenda-files
(list
"D:/autosync/autosync/org/idea.org"
"D:/autosync/autosync/org/todo.org")
org-default-notes-file "D:/autosync/autosync/org/default.org"
org-roam-directory (file-truename "F:/doc/mynote"))
(add-path-to-execute-path "C:/Program Files/7-Zip") ;; for dired,and `update-all-packages'
(setq foobar-binary "c:/green/foobar2000/foobar2000.exe")
(setq mpv-binary "C:/green/mpv/mpv.exe"))
;; home2
((and (string-equal system-type "windows-nt")
(string-equal "DESKTOP-N5D640Q" (system-name))
(equal (list 10 0 19045) (w32-version)))
(setq
org-directory "D:/autosync/autosync/org"
org-agenda-files
(list
"D:/autosync/autosync/org/idea.org"
"D:/autosync/autosync/org/todo.org")
org-default-notes-file "D:/autosync/autosync/org/default.org"
org-roam-directory (file-truename "d:/doc/mynote"))
(add-path-to-execute-path "C:/Program Files/7-Zip") ;; for dired,and `update-all-packages'
(setq mpv-binary "D:/green/mpv-x86_64-v3-20240609/mpv.exe")
;; pyenv问题好多!
(setq black-binary "D:/green/.pyenv/pyenv-win/versions/3.10.5/Scripts/black.exe") ;; 解决pyenv环境py format问题
(setenv "WORKON_HOME" "D:/prj/venv") ;; for pyvenv,要把所有venv都创建在同一个目录里
(setq elisp-autofmt-python-bin "D:/green/.pyenv/pyenv-win/versions/3.10.5/python.exe") ;; pyenv的python.bat对参数解析有bug
)
;;
(t
(when (executable-find "git")
(let ((git-bin-dir
(concat
(file-name-parent-directory
(file-name-directory (executable-find "git")))
"usr/bin")))
(when (file-exists-p git-bin-dir)
(add-path-to-execute-path git-bin-dir))))))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。