Skip to content

Commit

Permalink
feat(skel): add an example of init-tweaks.el
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jan 14, 2024
1 parent 3c3c709 commit 57d796f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions skel/init-tweaks.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
;;; init-tweaks.el --- Initialization tweaks, loaded early in the Emacs' "init.el" -*- lexical-binding: t; -*-

;; Copyright (C) 2022-2024 Abdelhak Bougouffa

;; Author: Abdelhak Bougouffa (rot13 "nobhtbhssn@srqbencebwrpg.bet")

;;; Commentary:

;;; Code:

(with-eval-after-load 'me-lib
;; Define special "first file" hooks and features for Python and C/C++ files,
;; this will creates the hooks `minemacs-first-c/c++-file-hook' and and
;; `minemacs-first-python-file-hook' that will provide the features
;; `minemacs-first-c/c++-file' and `minemacs-first-python-file'.
(+make-first-file-hook! 'c/c++ (rx "." (or "c" "cpp" "cxx" "cc" "c++" "h" "hpp" "hxx" "hh" "h++" "ixx" "cppm" "cxxm" "c++m" "ccm") eol))
(+make-first-file-hook! 'python (rx "." (or "py" "pyw" "pyx" "pyz" "pyzw") eol)))


;;; init-tweaks.el ends here

0 comments on commit 57d796f

Please sign in to comment.