Skip to content

Commit

Permalink
modified: onetime function to lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
ncaq committed May 12, 2015
1 parent f7bfc24 commit 273a0b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions profile/20_whitespace.el
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,4 @@
(interactive)
(setq-local whitespace-action (remove 'auto-cleanup whitespace-action)))

(defun whitespace-clean-disable (h)
(add-hook h 'whitespace-cleanup-turn-off))

(mapc 'whitespace-clean-disable whitespace-cleanup-disabled-hooks)
(mapc (lambda (h)(add-hook h 'whitespace-cleanup-turn-off)) whitespace-cleanup-disabled-hooks)
Binary file modified profile/20_whitespace.elc
Binary file not shown.

0 comments on commit 273a0b6

Please sign in to comment.