-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(skel): add an example of
init-tweaks.el
- Loading branch information
1 parent
3c3c709
commit 57d796f
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |