Fix hoc mode slightly, and add more hooks to python and org mode
This commit is contained in:
@@ -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)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
8
init.el
8
init.el
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user