From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dejan Jocic Newsgroups: gmane.emacs.help Subject: Re: Help Date: Wed, 11 May 2016 10:45:38 +0200 Message-ID: <87lh3hc79p.fsf@ddej.ddeb.org> References: <8760uokqg4.fsf@debian.uxu> <87r3dbtyfw.fsf@ddej.ddeb.org> <20160509032222524260391@bob.proulx.com> <87h9e7tuo6.fsf@ddej.ddeb.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1462956384 21552 80.91.229.3 (11 May 2016 08:46:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 May 2016 08:46:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 11 10:46:12 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b0PmV-0002Pa-AQ for geh-help-gnu-emacs@m.gmane.org; Wed, 11 May 2016 10:46:11 +0200 Original-Received: from localhost ([::1]:51050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0PmU-0003GH-A6 for geh-help-gnu-emacs@m.gmane.org; Wed, 11 May 2016 04:46:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0PmI-0003Ce-OH for help-gnu-emacs@gnu.org; Wed, 11 May 2016 04:46:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0PmE-0001CV-Bp for help-gnu-emacs@gnu.org; Wed, 11 May 2016 04:45:57 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:39080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0PmD-0001C4-S9 for help-gnu-emacs@gnu.org; Wed, 11 May 2016 04:45:54 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b0Pm8-00023m-Na for help-gnu-emacs@gnu.org; Wed, 11 May 2016 10:45:48 +0200 Original-Received: from 178.220.209.32 ([178.220.209.32]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 May 2016 10:45:48 +0200 Original-Received: from jodejka by 178.220.209.32 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 May 2016 10:45:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 144 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 178.220.209.32 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:+ziB/Kchtv7QgHMjEsaWQVzfyus= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:109924 Archived-At: John Mastro writes: > Dejan Jocic wrote: > >> No need for that, it is obvious that it does not read it. For example, I >> have some custom appearance and added Melpa in my init file. It does not >> "see" it on start, but it does after I do M-x eval-buffer on init file. > > What do you see if execute the following command in Emacs? > > C-h v user-init-file RET > > You should see something like this: > > user-init-file is a variable defined in ‘C source code’. > Its value is "~/.emacs.d/init.el" > > Documentation: > File name, including directory, of user’s initialization file. > If the file loaded had extension ‘.elc’, and the corresponding source file > exists, this variable contains the name of source file, suitable for use > by functions like ‘custom-save-all’ which edit the init file. > While Emacs loads and evaluates the init file, value is the real name > of the file, regardless of whether or not it has the ‘.elc’ extension. > > If the value is different, we'll know Emacs is looking in the wrong > place for some reason (perhaps a site-wide customization?) Well, I did found out why it does not load it. It is not exactly "why not", rather "because of what". Looks like it all happens because of my custom theme. I've installed solarized from Melpa and saved solarized-dark as my theme on start. Now, when I know what Emacs can not see and by putting it at the end of my .emacs file, it is all half ok. Emacs reads my init file to the point where it comes to these: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(ansi-color-names-vector ["#073642" "#dc322f" "#859900" "#b58900" "#268bd2" "#d33682" "#2aa198" "#657b83"]) '(compilation-message-face (quote default)) '(cua-global-mark-cursor-color "#2aa198") '(cua-normal-cursor-color "#839496") '(cua-overwrite-cursor-color "#b58900") '(cua-read-only-cursor-color "#859900") '(custom-enabled-themes (quote (solarized-dark))) '(custom-safe-themes (quote ("d677ef584c6dfc0697901a44b885cc18e206f05114c8a3b7fde674fce6180879" "8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" default))) '(fci-rule-color "#073642") '(highlight-changes-colors (quote ("#d33682" "#6c71c4"))) '(highlight-symbol-colors (--map (solarized-color-blend it "#002b36" 0.25) (quote ("#b58900" "#2aa198" "#dc322f" "#6c71c4" "#859900" "#cb4b16" "#268bd2")))) '(highlight-symbol-foreground-color "#93a1a1") '(highlight-tail-colors (quote (("#073642" . 0) ("#546E00" . 20) ("#00736F" . 30) ("#00629D" . 50) ("#7B6000" . 60) ("#8B2C02" . 70) ("#93115C" . 85) ("#073642" . 100)))) '(hl-bg-colors (quote ("#7B6000" "#8B2C02" "#990A1B" "#93115C" "#3F4D91" "#00629D" "#00736F" "#546E00"))) '(hl-fg-colors (quote ("#002b36" "#002b36" "#002b36" "#002b36" "#002b36" "#002b36" "#002b36" "#002b36"))) '(magit-diff-use-overlays nil) '(nrepl-message-colors (quote ("#dc322f" "#cb4b16" "#b58900" "#546E00" "#B4C342" "#00629D" "#2aa198" "#d33682" "#6c71c4"))) '(pos-tip-background-color "#073642") '(pos-tip-foreground-color "#93a1a1") '(smartrep-mode-line-active-bg (solarized-color-blend "#859900" "#073642" 0.2)) '(term-default-bg-color "#002b36") '(term-default-fg-color "#839496") '(vc-annotate-background nil) '(vc-annotate-color-map (quote ((20 . "#dc322f") (40 . "#c85d17") (60 . "#be730b") (80 . "#b58900") (100 . "#a58e00") (120 . "#9d9100") (140 . "#959300") (160 . "#8d9600") (180 . "#859900") (200 . "#669b32") (220 . "#579d4c") (240 . "#489e65") (260 . "#399f7e") (280 . "#2aa198") (300 . "#2898af") (320 . "#2793ba") (340 . "#268fc6") (360 . "#268bd2")))) '(vc-annotate-very-old-color nil) '(weechat-color-list (quote (unspecified "#002b36" "#073642" "#990A1B" "#dc322f" "#546E00" "#859900" "#7B6000" "#b58900" "#00629D" "#268bd2" "#93115C" "#d33682" "#00736F" "#2aa198" "#839496" "#657b83"))) '(xterm-color-names ["#073642" "#dc322f" "#859900" "#b58900" "#268bd2" "#d33682" "#2aa198" "#eee8d5"]) '(xterm-color-names-bright ["#002b36" "#cb4b16" "#586e75" "#657b83" "#839496" "#6c71c4" "#93a1a1" "#fdf6e3"])) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) Thing is that there should be nothing wrong with that, because it reads and loads it right when I do eval-buffer on it. Also, there was much less lines of that, before I've started to look for error. First few times, Emacs did not autosave so much lines. For example, I did not see before these lines for weechat-color-list, nor for xterm-color-names.I do not have weechat installed anyway. Difference is that now it sees and reads other parts of .emacs. Not that there is much more then this in it right now: ;;for Melpa (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) ;;for Perl (add-to-list 'auto-mode-alist '("\\.\\([pP][Llm]\\|al\\)\\'" . cperl-mode)) (add-to-list 'interpreter-mode-alist '("perl" . cperl-mode)) (add-to-list 'interpreter-mode-alist '("perl5" . cperl-mode)) (add-to-list 'interpreter-mode-alist '("miniperl" . cperl-mode)) Apologies if this is some kind of common knowledge for Emacs users, I'm fairly new to Emacs and was using it just for some simple text editing, gnus and bit of programming lessons till now. And my search around net skills did not give me much to work with.