[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using "Emacs Configure" **and** modifying .emacs
From: |
Emanuel Berg |
Subject: |
Re: Using "Emacs Configure" **and** modifying .emacs |
Date: |
Tue, 15 Aug 2017 04:20:26 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
> Perhaps I should add that (`custom-set') to
> mine as well...
;; The result:
;; erc-my.el, line 9: erc-user-full-name
;; erc-my.el, line 55: erc-header-line-format
;; mode-line.el, line 6: column-number-mode
;; mode-line.el, line 7: line-number-mode
;; spell-new.el, line 5: ispell-program-name
;; w3m-tabs.el, line 5: w3m-tab-width
;; 6 hits! :)
(require 'search-regexp-in-files) ;
http://user.it.uu.se/~embe8573/emacs-init/search-regexp-in-files.el
(defun find-custom-set-vars (&optional buffer)
(interactive)
(let ((bfr (or buffer (current-buffer)))
(out-bfr (get-buffer-create "*CustomSetVariables*")) )
(with-current-buffer bfr
(save-excursion
(goto-char (point-min))
(while (re-search-forward "([[:space:]]*set[fq][[:space:]]*" nil t)
(let ((var (variable-at-point t)) ; ANY-SYMBOL
(line (line-number-at-pos)) )
(when (and (custom-variable-p var)
(get var 'custom-set) )
(with-current-buffer out-bfr
(insert
(format "%s, line %s: %s\n" bfr line var))) )))))
(pop-to-buffer out-bfr) ))
(defun fcsv-check-all-elisp ()
(let ((fs (files-as-list (format "%s%s" "~/.emacs.d/emacs-init/" "**/*.el"))))
(dolist (f fs)
(find-custom-set-vars (find-file-noselect f)))))
;; (fcsv-check-all-elisp)
--
underground experts united
http://user.it.uu.se/~embe8573
- Re: Using "Emacs Configure" **and** modifying .emacs, (continued)
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/12
- RE: Using "Emacs Configure" **and** modifying .emacs, Drew Adams, 2017/08/12
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/12
- RE: Using "Emacs Configure" **and** modifying .emacs, Drew Adams, 2017/08/12
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/11
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/14
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/14
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/14
- Re: Using "Emacs Configure" **and** modifying .emacs, John Mastro, 2017/08/14
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/14
- Re: Using "Emacs Configure" **and** modifying .emacs,
Emanuel Berg <=
- Message not available
- Re: Using "Emacs Configure" **and** modifying .emacs, Dan Espen, 2017/08/10
- RE: Using "Emacs Configure" **and** modifying .emacs, Drew Adams, 2017/08/10
- RE: Using "Emacs Configure" **and** modifying .emacs, Drew Adams, 2017/08/10
- Message not available
- Re: Using "Emacs Configure" **and** modifying .emacs, Dan Espen, 2017/08/10
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/10
- Message not available
- Re: Using "Emacs Configure" **and** modifying .emacs, Dan Espen, 2017/08/11
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/11