Skip to content

Commit

Permalink
dev: add more programming modes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcraveiro committed Feb 29, 2024
1 parent d8a6d12 commit 72f0943
Show file tree
Hide file tree
Showing 17 changed files with 434 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ server
# Generated files
config/*.el
config/*.elc
vendor/*.elc

# files we can't find out who is creating
.emacs-buffers
Expand Down
26 changes: 26 additions & 0 deletions config/development.org
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,32 @@ again, I haven't see that as a problem."
)
hs-special-modes-alist)
)

(use-package csproj-mode)
(use-package sln-mode
:load-path cunene/vendor-packages)
(use-package sharper
:demand t
:bind
("C-c n" . sharper-main-transient))
#+end_src

* Protobuf

#+begin_src emacs-lisp
(use-package protobuf-mode)
#+end_src

* Terraform

#+begin_src emacs-lisp
(use-package terraform-mode)
#+end_src

* Dockerfile

#+begin_src emacs-lisp
(use-package dockerfile-mode)
#+end_src

* Doxymacs
Expand Down
11 changes: 9 additions & 2 deletions config/features.org
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ surrounded by word boundaries."
(name . "^\\**threads of")
(name . "^\\**breakpoints of")
(name . "^\\**Flycheck")
(name . "^\\*Flymake Log\\*$")
(name . "^\\**sx-search-result*")
(name . "^\\**gud-dogen.knit")
(name . "^\\**Warnings*")
Expand Down Expand Up @@ -1198,7 +1199,6 @@ For the org-mode support, see:
("M-g a" . consult-org-agenda)
("M-g m" . consult-mark)
("C-x b" . consult-buffer)
("<help> a" . consult-apropos) ;; orig. apropos-command
("M-g g" . consult-goto-line) ;; orig. goto-line
("M-g o" . consult-outline)
("M-g m" . consult-mark)
Expand All @@ -1217,7 +1217,6 @@ For the org-mode support, see:
("M-s k" . consult-keep-lines)
("M-s u" . consult-focus-lines)
;; Isearch integration
("M-s e" . consult-isearch)
("M-g l" . consult-line)
("M-s m" . consult-multi-occur)
("C-x c o" . consult-multi-occur)
Expand Down Expand Up @@ -1271,6 +1270,14 @@ For the org-mode support, see:
("C-M-%" . anzu-query-replace-regexp)))
#+end_src

* Fonts

#+begin_src emacs-lisp
(use-package font-lock-ext
:load-path cunene/vendor-packages)
#+end_src


* Snippets

#+begin_src emacs-lisp
Expand Down
2 changes: 1 addition & 1 deletion custom.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
'(imenu-list ztree yasnippet-snippets yaml-mode windswap which-key volatile-highlights vertico verb undo-tree treemacs-projectile treemacs-persp treemacs-magit treemacs-icons-dired treemacs-evil treemacs-all-the-icons super-save ssh sql-clickhouse smartparens smart-hungry-delete rg rainbow-mode rainbow-delimiters project-shells prodigy powershell persistent-scratch org-roam-ui org-present org-fancy-priorities orderless mustache-mode mustache mastodon marginalia lsp-ui lsp-treemacs logview llama-cpp jump-tree json-mode jq-mode jq-format inf-mongo ibuffer-projectile hl-todo hide-mode-line helpful helm-ls-git helm-c-yasnippet google-this git-timemachine git-modes git-messenger git-gutter-fringe flycheck-plantuml flycheck-eglot eyebrowse expand-region eshell-git-prompt engine-mode drag-stuff doom-themes doom-modeline dimmer diminish diff-at-point define-word dashboard crux consult-yasnippet consult-flycheck consult-eglot consult-dir company-posframe company-box color-identifiers-mode cmake-mode citeproc-org chatgpt-shell browse-kill-ring bongo bm beacon backup-walker anzu aggressive-indent))
'(dockerfile-mode terraform-mode protobuf-mode csproj-mode sharper imenu-list ztree yasnippet-snippets yaml-mode windswap which-key volatile-highlights vertico verb undo-tree treemacs-projectile treemacs-persp treemacs-magit treemacs-icons-dired treemacs-evil treemacs-all-the-icons super-save ssh sql-clickhouse smartparens smart-hungry-delete rg rainbow-mode rainbow-delimiters project-shells prodigy powershell persistent-scratch org-roam-ui org-present org-fancy-priorities orderless mustache-mode mustache mastodon marginalia lsp-ui lsp-treemacs logview llama-cpp jump-tree json-mode jq-mode jq-format inf-mongo ibuffer-projectile hl-todo hide-mode-line helpful helm-ls-git helm-c-yasnippet google-this git-timemachine git-modes git-messenger git-gutter-fringe flycheck-plantuml flycheck-eglot eyebrowse expand-region eshell-git-prompt engine-mode drag-stuff doom-themes doom-modeline dimmer diminish diff-at-point define-word dashboard crux consult-yasnippet consult-flycheck consult-eglot consult-dir company-posframe company-box color-identifiers-mode cmake-mode citeproc-org chatgpt-shell browse-kill-ring bongo bm beacon backup-walker anzu aggressive-indent))
'(safe-local-variable-values
'((eval setq-local org-roam-db-location
(expand-file-name ".org-roam.db" org-roam-directory))
Expand Down
Binary file removed vendor/chatgpt-shell.elc
Binary file not shown.
Binary file removed vendor/chatgpt.elc
Binary file not shown.
Binary file removed vendor/completing-read-xref.elc
Binary file not shown.
Binary file removed vendor/doxymacs.elc
Binary file not shown.
68 changes: 68 additions & 0 deletions vendor/font-lock-ext.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
;;; font-lock-ext.el --- extensions to Emacs font-lock.el
;;
;; Copyright 2011-2012 Florian Kaufmann <sensorflo@gmail.com>
;;
;; Author: Florian Kaufmann <sensorflo@gmail.com>
;; URL: https://github.com/sensorflo/font-lock-ext/
;; Created: 2011
;; Keywords: languages, faces
;;
;; This file is not part of GNU Emacs.
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;;
;;; Commentary:
;;
;; Currently it only adds some faces to the customize group font-lock-faces. The
;; plan is however that it will provide additional font lock keyword forms. As
;; font-lock.el states in it's commentary section, at least it's syntactic parse
;; abilities could be improved.
;;
;;; Code:

(require 'font-lock)

(defface font-lock-unimportant
'((((background dark)) (:foreground "gray80"))
(t (:foreground "gray80")))
"Face for hi-lock mode."
:group 'font-lock-faces)

(defface font-lock-semi-unimportant
'((((background dark)) (:foreground "gray80"))
(t (:foreground "gray80")))
"Face for hi-lock mode."
:group 'font-lock-faces)

(defface font-lock-type-def
'((((background dark)) (:foreground "green"))
(t (:foreground "green")))
"Face for hi-lock mode."
:group 'font-lock-faces)

(defface font-lock-jump-keyword
'((t nil))
"Face for hi-lock mode."
:group 'font-lock-faces)

;; font-lock.el says (see definition of the variable font-lock-comment-face)
;; that there is actually no need to create variables that specify face names.
;; However it seems to be needed all the same.
(defvar font-lock-semi-unimportant 'font-lock-semi-unimportant)
(defvar font-lock-unimportant 'font-lock-unimportant)
(defvar font-lock-jump-keyword 'font-lock-jump-keyword)


(provide 'font-lock-ext)
;;; font-lock-ext.el ends here
Binary file removed vendor/framemove.elc
Binary file not shown.
Binary file removed vendor/org-wc.elc
Binary file not shown.
Binary file removed vendor/ox-taskjuggler.elc
Binary file not shown.
Binary file removed vendor/pdf-continuous-scroll-mode.elc
Binary file not shown.
Loading

0 comments on commit 72f0943

Please sign in to comment.