From f354e51c480f459120bfeff678a07b675a24c7fe Mon Sep 17 00:00:00 2001 From: hermades Date: Fri, 30 May 2025 23:03:58 -0400 Subject: [PATCH] added support for php --- .gitignore | 0 .projectile | 0 Emacs/.emacs | 26 ++++++++++++++++++++++++++ Emacs/custom/setup-appearance.el | 0 Emacs/custom/setup-c.el | 0 Emacs/custom/setup-general.el | 7 ++++++- Emacs/custom/setup-org.el | 0 Emacs/custom/setup-python.el | 3 +++ Emacs/custom/setup-web.el | 0 Readme.org | 0 10 files changed, 35 insertions(+), 1 deletion(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 .projectile mode change 100644 => 100755 Emacs/.emacs mode change 100644 => 100755 Emacs/custom/setup-appearance.el mode change 100644 => 100755 Emacs/custom/setup-c.el mode change 100644 => 100755 Emacs/custom/setup-general.el mode change 100644 => 100755 Emacs/custom/setup-org.el create mode 100755 Emacs/custom/setup-python.el mode change 100644 => 100755 Emacs/custom/setup-web.el mode change 100644 => 100755 Readme.org diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.projectile b/.projectile old mode 100644 new mode 100755 diff --git a/Emacs/.emacs b/Emacs/.emacs old mode 100644 new mode 100755 index 2b57ffb..ea387f1 --- a/Emacs/.emacs +++ b/Emacs/.emacs @@ -17,5 +17,31 @@ (require 'setup-general) (require 'setup-org) (require 'setup-appearance) + (require 'setup-c) +(require 'setup-python) + (require 'setup-web) +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(package-selected-packages nil)) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(org-block ((t (:inherit fixed-pitch)))) + '(org-code ((t (:inherit (shadow fixed-pitch))))) + '(org-document-info ((t (:foreground "dark orange")))) + '(org-document-info-keyword ((t (:inherit (shadow fixed-pitch))))) + '(org-indent ((t (:inherit (org-hide fixed-pitch))))) + '(org-link ((t (:foreground "royal blue" :underline t)))) + '(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch))))) + '(org-property-value ((t (:inherit fixed-pitch)))) + '(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch))))) + '(org-table ((t (:inherit fixed-pitch :foreground "#83a598")))) + '(org-tag ((t (:inherit (shadow fixed-pitch) :weight bold :height 0.8)))) + '(org-verbatim ((t (:inherit (shadow fixed-pitch)))))) diff --git a/Emacs/custom/setup-appearance.el b/Emacs/custom/setup-appearance.el old mode 100644 new mode 100755 diff --git a/Emacs/custom/setup-c.el b/Emacs/custom/setup-c.el old mode 100644 new mode 100755 diff --git a/Emacs/custom/setup-general.el b/Emacs/custom/setup-general.el old mode 100644 new mode 100755 index 6347b0b..743250e --- a/Emacs/custom/setup-general.el +++ b/Emacs/custom/setup-general.el @@ -18,7 +18,7 @@ (defun tabify-before-save () (cond - ((derived-mode-p 'prog-mode) + ((and (derived-mode-p 'prog-mode) (not (eq major-mode python-mode))) (tabify (point-min) (point-max))) ((eq major-mode 'org-mode) (untabify (point-min) (point-max))))) @@ -129,4 +129,9 @@ ;; this is the most annoying thing in the worlddddd (global-unset-key (kbd "C-z")) +;; to manage environments +(use-package envrc + :config + (envrc-mode)) + (provide 'setup-general) diff --git a/Emacs/custom/setup-org.el b/Emacs/custom/setup-org.el old mode 100644 new mode 100755 diff --git a/Emacs/custom/setup-python.el b/Emacs/custom/setup-python.el new file mode 100755 index 0000000..dd14deb --- /dev/null +++ b/Emacs/custom/setup-python.el @@ -0,0 +1,3 @@ +(add-hook 'python-mode-hook 'lsp-deferred) + +(provide 'setup-python) diff --git a/Emacs/custom/setup-web.el b/Emacs/custom/setup-web.el old mode 100644 new mode 100755 diff --git a/Readme.org b/Readme.org old mode 100644 new mode 100755