summary refs log tree commit diff
path: root/nixos/modules/services/editors
AgeCommit message (Collapse)AuthorFilesLines
2023-08-25emacs: remove outdated doc about package initializationLin Jian1-16/+2
Since Emacs 27[1], there is no need to call package-initialize in the init file. [1]: https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS.27?id=cae528457cb862dc886a34240c9d4c73035b6659#n227
2023-08-25nixos/emacs: replace emacs with Emacs in the docLin Jian1-3/+3
2023-07-29nixos/emacs: start emacs service with the graphical-sessionAtemu1-1/+16
If emacs starts before the graphical session is initialised, clients won't be able to open new frames in the session. Start emacs with the graphical session to avoid this issue. Fixes https://github.com/NixOS/nixpkgs/issues/224512
2023-07-26nixos/emacs: don't set EDITOR to store pathMarco Rebhan1-1/+1
Use emacseditor in PATH instead of using the absolute path to prevent old path from sticking around when switching configurations.
2023-05-03nixos/emacs: restore example markuppennae1-8/+29
these examples were turned into untitle anchors previously because at the time supporting examples was not deemed necessary or useful. now that we have them we can restore them though.
2023-01-27nixos/manual: render module chapters with nixos-render-docspennae2-491/+1
this converts meta.doc into an md pointer, not an xml pointer. since we no longer need xml for manual chapters we can also remove support for manual chapters from md-to-db.sh since pandoc converts smart quotes to docbook quote elements and our nixos-render-docs does not we lose this distinction in the rendered output. that's probably not that bad, our stylesheet didn't make use of this anyway (and pre-23.05 versions of the chapters didn't use quote elements either). also updates the nixpkgs manual to clarify that option docs support all extensions (although it doesn't support headings at all, so heading anchors don't work by extension).
2023-01-10nixos/manual: move "edit the MD file" comments to generated XMLpennae2-1/+2
2023-01-10nixos/manual: generate module chapters with md-to-db.shpennae2-18/+17
2023-01-10nixos/manual: enable smart quotes for all MD chapterspennae1-1/+1
2023-01-10nixos/emacs: convert manual chapter to MDpennae3-440/+785
2023-01-10nixos/manual: inline callout listspennae1-55/+27
we only have three uses at the moment, all of them in code blocks where they could just as well (or maybe better) be comments. markdown can't do callouts without another pandoc filter, so we'll turn them into comments instead. synapse would've benefited from inline links, but referencing an external numbered list as plain text (instead of clickable links, like callout lists had) seems even worse than putting urls into comments as plain text.
2023-01-10nixos/manual: replace most examples with anchorspennae1-18/+6
markdown doesn't really have examples as a first-class construct. we'll keep all examples that are referenced around for now, but all unreferenced examples turn into invisible anchors. (turning them into fourth-level headings in their files, as would be necessary for emacs, removes them from the TOC anyway.)
2023-01-10nixos/manual: strip un-MD-able tagspennae1-9/+9
productname, application, acronym, guilabel, and guibutton were so far not rendered specially and can go away completely. replaceable does render differently, but since it was only used twice and in places where the intent should be clear without the extra markup it can go as well.
2023-01-10nixos/manual: normalize <function> -> <literal>pennae1-4/+4
use <literal> instead since markdown will have them as inline code blocks.
2023-01-10nixos/manual: normalize <programlisting>pennae1-2/+6
makes sure that program listing tags are separated from their contents by exactly a newline character. this makes the markdown translation easier to verify (since no new newlines need to be inserted), and there's no rendering difference anyway.
2023-01-10nixos/manual: remove links from program listingspennae1-4/+4
markdown cannot represent those links. remove them all now instead of in each chapter conversion to keep the diff for each chapter small and more understandable.
2022-08-31nixos/*: automatically convert option descriptionspennae3-9/+9
conversions were done using https://github.com/pennae/nix-doc-munge using (probably) rev f34e145 running nix-doc-munge nixos/**/*.nix nix-doc-munge --import nixos/**/*.nix the tool ensures that only changes that could affect the generated manual *but don't* are committed, other changes require manual review and are discarded.
2022-08-19nixos/*: mark pre-existing markdown descriptions as mdDocpennae1-1/+1
2022-07-30treewide: automatically md-convert option descriptionspennae3-15/+15
the conversion procedure is simple: - find all things that look like options, ie calls to either `mkOption` or `lib.mkOption` that take an attrset. remember the attrset as the option - for all options, find a `description` attribute who's value is not a call to `mdDoc` or `lib.mdDoc` - textually convert the entire value of the attribute to MD with a few simple regexes (the set from mdize-module.sh) - if the change produced a change in the manual output, discard - if the change kept the manual unchanged, add some text to the description to make sure we've actually found an option. if the manual changes this time, keep the converted description this procedure converts 80% of nixos options to markdown. around 2000 options remain to be inspected, but most of those fail the "does not change the manual output check": currently the MD conversion process does not faithfully convert docbook tags like <code> and <package>, so any option using such tags will not be converted at all.
2022-03-07nixos/haste-server: addMaciej Krüger1-0/+86
2021-10-04nixos/doc: clean up defaults and examplesNaïm Favier2-2/+2
2021-06-18nixos/infinoted: use `port` typeDaniel Nagy1-1/+1
2021-01-24treewide: fix double quoted strings in meta.descriptionvolth1-4/+4
Signed-off-by: Ben Siraphob <bensiraphob@gmail.com>
2021-01-13treewide: emacsPackages -> emacs.pkgs & emacsWithPackages -> ↵adisbladis1-5/+5
emacs.pkgs.withPackages The previous names are now aliases and shouldn't be used anywhere inside nixpkgs.
2020-08-27Fix typo in services/editors/emacs documentationNick Hackman1-1/+1
In section `sec-modify-via-packageOverrides`: is -> if
2020-08-21nixos/editors: Remove any explicit mention of Emacs 25adisbladis1-6/+6
2020-08-16nixos/emacs: formatted with nixpkgs-fmtpaumr1-23/+24
2020-05-03treewide: use https for nixos.org and hydra.nixos.orgPavol Rusnak1-1/+1
tarballs.nixos.org is omitted from the change because urls from there are always hashed and checked
2020-01-06treewide: use attrs instead of list for types.loaOf optionsrnhmjoj1-7/+8
2019-10-12treewide: Switch to system usersJanne Heß1-0/+1
2019-09-19Revert "nixos/doc: re-format"Eelco Dolstra1-51/+170
This reverts commit ea6e8775bd69e4676c623a85c39f1da540d29ad1. The new format is not an improvement.
2019-09-18nixos/doc: re-formatJan Tojnar1-170/+51
2019-09-18nixos/environment: set GTK_DATA_PREFIXworldofpeace1-7/+1
Many desktop environment modules are already setting this so it already makes sense to just do this globally.
2019-09-06tree-wide: s/GTK+/GTK/gJan Tojnar1-3/+3
GTK was renamed.
2019-08-30emacsPackages: Drop old emacsPackages (non-NG) setsadisbladis1-14/+6
These have been deprecated for a long time now and has not seen much maintenance.
2019-08-17remove all instances of nix-env -i without -A in the NixOS manualSymphorien Gibol1-1/+1
motivation: https://nixos.wiki/wiki/FAQ/Why_not_use_nix-env_-i_foo%3F
2019-07-13manual: mention jmacs as emacs imitationcaadar1-1/+2
2019-06-17doc: Use prompt more oftenJan Tojnar1-5/+5
2018-12-02Treewide: use HTTPS on GNU domainsc0bw3b1-1/+1
HTTP -> HTTPS for : - http://gnu.org/ - http://www.gnu.org/ - http://elpa.gnu.org/ - http://lists.gnu.org/ - http://gcc.gnu.org/ - http://ftp.gnu.org/ (except in fetchurl mirrors) - http://bugs.gnu.org/
2018-09-29docs: formatGraham Christensen1-427/+394
2018-09-02nixos docs: more IDs 18.09-betaGraham Christensen1-4/+4
2018-09-01nixos docs: give IDs to thingsGraham Christensen1-12/+12
2018-08-08libinfinity: modernize expressionJan Tojnar1-4/+4
* Use multiple outputs to reduce the number of rebuilds necessary. * Fix build with GTK+ support
2018-06-30nixos/modules: users.(extraUsers|extraGroup->users|group)Florian Klink1-2/+2
2018-05-01Merge pull request #39478 from pngwjpgh/infinotedMatthew Justin Bauer1-1/+1
nixos/infinoted: Abstract over libinfinity version
2018-04-30Merge pull request #38831 from rdnetto/improve-cross-refsGraham Christensen1-10/+10
Improve cross referencing in NixOS Manual
2018-04-26nixos/infinoted: Abstract over libinfinity versionGregor Kleen1-1/+1
2018-04-16Merge pull request #35896 from wucke13/masteradisbladis1-1/+20
Solving #30396
2018-04-12Added cross-references to NixOS manualReuben D'Netto1-10/+10
2018-03-02Solving #30396wucke131-1/+20