6a69add73f
refactor(file-templates): update doomrc templates
...
For .doom, .doommodule, and .doom.el files.
2025-06-30 15:23:27 +02:00
1dc606bb27
fix(file-templates): __doom-readme: use doom-modules-version
2024-09-11 19:46:16 -04:00
4db347769e
fix(file-templates): unknown directive error from __license-lgpl3
...
The misspelling produces a 'Ignoring unknown directive "contribuer"'
error, which was introduced in joaotavora/yasnippet@25f5d88 .
Ref: joaotavora/yasnippet@25f5d8808a
2024-02-08 23:11:48 -05:00
88bb045388
docs(*): replace all-the-icons with nerd-icons
...
Also colorizes the leading icon in notices.
2023-09-16 20:19:11 +02:00
25602409b6
refactor(file-templates): c++-mode/__main.cpp: modernize
...
- Drops `using namespace std`: a known anti-pattern which imports a
massive namespace into the global namespace. See
https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice
- Modernizes/generalizes `main`'s signature with a trailing return
type (C++11)
Ref: https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice
Close : #7387
2023-09-07 20:22:58 +02:00
9cc9351cae
feat(file-templates): add c-mode/__main.c
...
Ref: #7387
2023-09-07 20:22:58 +02:00
5b2ea8c32f
feat(file-templates): Add javascript "use strict" file template
2022-10-29 02:52:01 +02:00
76caca0eaa
feat(file-templates): Add javascript shebang file template
2022-10-29 02:52:01 +02:00
5ac2a5258b
docs: change link format
2022-10-05 01:01:19 +02:00
5ca8c75644
fix(file-templates): better recognize shell types
...
There are some conventional files strongly associated with a non-bash
shell which do not use an explicit `.zsh` file extension (e.g.
`.zprofile`); the old logic would always use the `#!/usr/bin/env bash`
shebang in these cases, which is a tiny little bummer.
2022-08-19 11:23:56 +02:00
3ca74a1d5f
feat(file-templates): add .doomrc template
...
Ref: 9b8ed397e8
2022-08-07 20:57:55 +02:00
1abcf913aa
revert: fix(docs): set mode in file-local vars
...
emacs-straight/org-mode@e22b4eb7aa introduced a breaking change that
made it impossible to rely on .dir-locals.el to change org-mode buffers
in $EMACSDIR to doom-docs-org-mode (without infinite recursion), so we
used file-local variables in 7e400ab
.
emacs-straight/org-mode@215de6176b reverted that change, so we can use
.dir-locals.el again, and this is my preference, since it requires less
boilerplate across our hundreds of org files.
Ref: emacs-straight/org-mode@215de6176b
Ref: emacs-straight/org-mode@e22b4eb7aa
Revert: 7e400abdc0
2022-08-07 19:08:07 +02:00
ba668f7cb0
fix(file-templates): indentation for licenses
...
And remove superfluous tabstops in gpl3 license.
2022-08-05 00:49:17 +02:00
d6ffd2bfaa
fix(file-templates): update doom doc templates
...
To reflect the new mode: line added in 7e400ab
, and add an ID property.
Also corrects heading level in __doom-readme file template.
Ref: 7e400abdc0
2022-08-04 01:15:23 +02:00
1f8bf7accb
merge: rewrite-docs
...
I've omitted docs/*.org from this merge, as there is still work left to
do there, but I am pushing the module docs early so folks can benefit
from the new docs sooner.
2022-08-03 03:27:50 +02:00
1255315bfc
refactor(docs): replace nav menus with virtual one
...
Now that the header is dynamically generated (when doom-docs-mode is
active), a literal header is unnecessary.
2022-08-02 19:37:07 +02:00
e77a45bc22
docs: use lowercase keywords
...
As per Org's new defaults, which we're adopting elsewhere, so may as
well adopt it here.
2022-08-02 16:23:43 +02:00
b77699c38f
nit(org): lower case keywords in file templates
...
See https://list.orgmode.org/87tuuw3n15.fsf@nicolasgoaziou.fr/ .
2022-03-31 00:43:51 +02:00
893b4171b7
tweak(file-templates): remove default JSON template
...
As described at https://www.json.org/json-en.html , JSON has multiple
top-level forms (at least objects and arrays, and potentially all values
as well, depending on who you ask). Of these, I would not say array is a
good default. I frequently find myself deleting this default, generally
to use an object instead.
Because there is no consistent winner, and because the template is so
trivial, it seems best to simply delete it: the cost of the template not
matching the user's intent outweighs any benefit it stands to deliver
when it does match the user's intent.
2022-03-19 16:14:53 +01:00
169896e9ad
tweak(file-templates): update default solidity template
...
- Added SPDX-License-Identifier
- Renewed default version pragma
2022-02-23 17:47:14 +01:00
6ab43ff252
tweak(file-templates): use NAME <EMAIL> for Author: line
...
Instead of the github URL. No guarantee the user is a github user.
2022-02-23 15:23:14 +01:00
88844e9cec
docs: simplify internal docs links
...
Fewer links means less confusion.
- Merge doom-issue and doom-commit links into doom-ref (for auto-linking
Issue/PR/commit references).
- Merge doom-module-source and doom-docs-source links into doom-source.
- Rename doom-report-issue to doom-report.
- Use '!' as the icon for module issues link.
- Remove doom-repo (replaced with "doom:*" in :lang org module).
- Add doomdir and emacsdir links to :lang org module.
2021-11-21 20:04:28 +01:00
0aad1399cc
refactor(file-templates): doom readme templates
...
Including readme template for categories.
2021-11-21 20:04:28 +01:00
771b7147c9
revert: "Add set -euo pipefail to sh-mode file template"
...
Revert ce2fee138a
Close #5428
2021-09-23 11:36:09 +02:00
b598d83aeb
feat(file-templates): add clojure gitignore template ( #5357 )
2021-09-14 14:27:55 +02:00
d88948f764
fix(file-templates): github user in elisp packages
2021-08-16 11:36:09 -04:00
3eac1f4e8a
removed unused use in "file-template rust main"
2021-06-23 22:52:27 +02:00
63cc08be98
lang/java: Add file templates
...
- `__annotation-type`
- `__enum`
- `__interface`
- `__record`
- `__` → `__class` (rename)
2021-06-05 23:21:53 +09:00
b20736c9b7
Add haskell gitignore template
2021-05-30 11:07:29 -04:00
704aa4ebde
Remove double underscore from c header templates
...
Using double underscore for an identifier in C/C++ invokes undefined
behavior.
From https://eel.is/c++draft/lex.name :
Each identifier that contains a double underscore __ or begins with an
underscore followed by an uppercase letter is reserved to the
implementation for any use.
2021-03-16 10:16:33 +01:00
86345887d8
Fixing the gpl template clash.
...
Need to escape the backticks that should appear as literals in the GPLv3 license.
2021-02-27 15:38:04 +01:00
334e054ab0
Read username from git config github.user
...
Falls back to user-login-name otherwise.
2021-01-28 21:23:07 -05:00
d0e7451de8
Merge pull request #4533 from danlamanna/fix-module-404s
...
Fix various broken links
2021-01-27 02:42:40 -05:00
75ac7be289
Fix package-lint warnings in elisp package template
2021-01-18 17:53:59 -05:00
08354f3316
Fix various broken links
2021-01-17 15:08:21 -05:00
3d993286c0
Licences: Add tabstops with defaults to gpl3
2020-10-22 02:09:22 +08:00
b8e85a42c7
Remove .yas-setup.el for java-mode
2020-05-07 08:28:12 +09:00
53eb32ea16
Fix Java file templates
2020-05-06 18:24:10 +09:00
e1a9bf234f
Minor refactors
2020-04-26 02:33:37 -04:00
ce2fee138a
Add set -euo pipefail to sh-mode file template
...
Adds a line with set -euo pipefail to the sh-mode file template, which improves the erroring of bash scripts
As described by https://ashishb.net/all/the-first-two-statements-of-your-bash-script-should-be/
2020-04-15 14:39:47 -04:00
ad89f79926
Better title heuristic for org template
...
Uses a stripped version of s-titleized-words, to not add s.el as a dependency.
2020-02-28 20:45:00 +02:00
9d56af728f
Fix typo in doom module readme template
2020-02-25 20:07:52 -05:00
d0b50da2c4
Add elisp package file-template
2020-01-20 19:31:36 -05:00
8ac4320e0b
Update readme file template
2020-01-09 16:41:12 -05:00
fe1642e854
Add special goto def/docs support in doom! blocks
...
- Pressing gd on a module in your doom! block will now browse that
module's directory.
- Pressing K on a module will jump to that module's documentation, if any.
- Pressing K on a module flag will jump to that flag's description
within that module's documenation.
- This is now explained in init.example.el
Closes #2249
2019-12-26 01:41:45 -05:00
a57610ccce
add common paths to be ignored in most js projects
2019-12-08 14:20:14 +01:00
d8526e00a7
Use python-shell-interpreter for .py file tmeplate
2019-10-04 11:57:19 -04:00
0625bf87d6
Add a nxml-mode file template
2019-07-18 03:41:47 +02:00
c2fe951062
Add direnv-envrc-mode file template
2019-07-10 02:27:13 +02:00
5662b2c4b3
Add shell.nix file-template
2019-07-08 14:36:38 +02:00