Fix hoc mode slightly, and add more hooks to python and org mode

This commit is contained in:
2021-11-24 15:36:39 -05:00
parent 8152a1ae0b
commit d34db3b031
2 changed files with 8 additions and 4 deletions

View File

@@ -4,9 +4,11 @@
(setq hoc-mode-highlights (setq hoc-mode-highlights
'( '(
( "//.*" . font-lock-comment-face)
( "proc\\|objref\\|create\\|public\\|begintemplate\\|endtemplate\\|access\\|if\\|for" . font-lock-keyword-face) ( "proc\\|objref\\|create\\|public\\|begintemplate\\|endtemplate\\|access\\|if\\|for" . font-lock-keyword-face)
( "[a-z0-9A-Z_]+?[ \n\t]*\\((\\)" . font-lock-function-name-face) ( "[a-z0-9A-Z_]+?[ \n\t]*\\((\\)" . font-lock-function-name-face)
( "//.+" . font-lock-comment-face)
( "/\*" . font-lock-comment-start-skip)
( "\*/" . font-lock-comment-end-skip)
) )
) )

View File

@@ -141,7 +141,11 @@
; Python ; Python
(use-package pyvenv (use-package pyvenv
:init :init
(setenv "WORKON_HOME" "~/.pyenv/versions")) (setenv "WORKON_HOME" "~/.pyenv/versions")
:hook (
(python-mode . pyvenv-mode)
)
)
(use-package lsp-python) (use-package lsp-python)
; C related ; C related
@@ -249,8 +253,6 @@
) )
; References etc. ; References etc.
(use-package org-ref (use-package org-ref
:after org
:defer t
:config :config
(setq reftex-default-bibliography '("~/Documents/Bibliography/references.bib")) (setq reftex-default-bibliography '("~/Documents/Bibliography/references.bib"))
;; see org-ref for use of these variables ;; see org-ref for use of these variables