diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-04 01:34:11 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-04 01:34:11 +1300 |
commit | c4501713ee405a13046dc137888766016164ef96 (patch) | |
tree | 98858719ae84794cae76fc98f1c46dd22a8575fd | |
parent | Merge branch 'release/v0.5.0' into develop (diff) | |
parent | Add ~/.tidyrc and accompanying Makefile target (diff) | |
download | dotfiles-c4501713ee405a13046dc137888766016164ef96.tar.gz dotfiles-c4501713ee405a13046dc137888766016164ef96.zip |
Merge branch 'feature/tidyrc' into develop
* feature/tidyrc:
Add ~/.tidyrc and accompanying Makefile target
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | tidy/profile.d/tidy.sh | 3 | ||||
-rw-r--r-- | tidy/tidyrc | 20 |
4 files changed, 29 insertions, 0 deletions
@@ -34,6 +34,7 @@ install-sh \ install-subversion \ install-terminfo \ + install-tidy \ install-tmux \ install-urxvt \ install-vim \ @@ -463,6 +464,10 @@ install-terminfo: find terminfo -type f -name '*.info' \ -exec tic -- {} \; +install-tidy: install-sh + cp -p -- tidy/profile.d/* $(HOME)/.profile.d + cp -p -- tidy/tidyrc $(HOME)/.tidyrc + install-tmux: tmux/tmux.conf install-terminfo cp -p -- tmux/tmux.conf $(HOME)/.tmux.conf @@ -93,6 +93,7 @@ Configuration is included for: the rxvt terminal emulator with Unicode support * [Subversion](https://subversion.apache.org/) -- Apache Subversion, a version control system +* [tidy](http://www.html-tidy.org/) -- HTML/XHTML linter and tidier * [tmux](https://tmux.github.io/) -- Terminal multiplexer similar to GNU Screen * [Vim](http://www.vim.org/) -- Vi IMproved, a text editor diff --git a/tidy/profile.d/tidy.sh b/tidy/profile.d/tidy.sh new file mode 100644 index 00000000..177a8124 --- /dev/null +++ b/tidy/profile.d/tidy.sh @@ -0,0 +1,3 @@ +# Set a configuration file path for tidy(1) +HTML_TIDY=$HOME/.tidyrc +export HTML_TIDY diff --git a/tidy/tidyrc b/tidy/tidyrc new file mode 100644 index 00000000..65f93112 --- /dev/null +++ b/tidy/tidyrc @@ -0,0 +1,20 @@ +# UTF-8 everywhere by default +char-encoding: utf8 +input-encoding: utf8 +output-encoding: utf8 + +# Seems reasonable +drop-empty-paras: yes + +# Indent to four spaces +indent: yes +indent-spaces: 4 + +# Shut up please +quiet: yes + +# Don't mess with my <meta> +tidy-mark: no + +# Don't wrap +wrap: 0 |