@echo " .:. Sugar - The Dot-Files Manager .:."
@echo
@echo "Usage:"
- @echo " make lint - lint The Sugar System"
- @echo " make update - update repository with the current dot files"
- @echo " make commit - commit changes to the repository"
- @echo " make install - update the current dot files with the repository"
+ @echo " make lint - lint The Sugar System."
+ @echo " make update - update repository with the current dot files."
+ @echo " make commit - commit changes to the repository."
+ @echo " make install - update the current dot files with the repository."
@echo " make import FILES=<FILES>"
- @echo " - import the dot files into the repository"
+ @echo " - import the dot files into the repository."
+ @echo " make import-all"
+ @echo " - import every uncontrolled dot files, which aren't"
+ @echo " ignored, into the repository."
@echo " make diff FILE=<FILE>"
- @echo " - show diff of the dot file"
+ @echo " - show diff of the dot file."
@echo
lint:
@exit 1
else
import:
- perl ./tools/import.pl $(FILES)
+ (for i in $(FILES); do echo $i; done) | perl ./tools/import.pl
-git status
endif
+import-all:
+ perl ./tools/list-files.pl | \
+ perl ./tools/find-missing.pl | \
+ cut -b 3- | \
+ perl ./tools/import.pl
+ -git status
+
ifeq ($(FILE),)
diff:
@echo "Specify one file."
;; flyspell
(require-if-present 'flyspell)
+;; jaspace
+(require-if-present 'jaspace)
+
;; mic-paren
(require-if-present 'mic-paren)
(if (featurep 'mic-paren)
;; MPC
;(require-if-present 'mpc-autoloads)
+;; rst-mode
+(autoload 'rst-mode "rst"
+ "mode for editing reStructuredText documents" t)
+(setq auto-mode-alist
+ (append '(("\\.rst$" . rst-mode)
+ ("\\.rest$" . rst-mode)) auto-mode-alist))
+
;; twittering-mode
(require-if-present 'twittering-mode)
(setq twittering-username "phonohawk")
'(jabber-resource "emacs")
'(jabber-server "jabber.jp")
'(jabber-username "phonohawk")
+ '(jaspace-highlight-tabs t)
'(js2-basic-offset 4)
'(js2-indent-on-enter-key t)
'(js2-use-font-lock-faces t)
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(flyspell-incorrect ((t (:foreground "OrangeRed" :overline t))))
+ '(jaspace-highlight-tab-face ((((class color) (background dark)) (:foreground "gray70" :underline t))))
'(which-func-face ((t (:background "black" :foreground "dark orange")))))
use File::Path;
sub main {
- my @args = @_;
+ while (defined(my $arg = <>)) {
+ chomp $arg;
- foreach my $arg (@args) {
my $rel = File::Spec->abs2rel($arg, $ENV{HOME});
my $abs = File::Spec->rel2abs($rel, $ENV{HOME});
my $saved = rel2saved($rel);
}
}
-main(@ARGV);
+main();