help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help


From: Dejan Jocic
Subject: Re: Help
Date: Wed, 11 May 2016 10:45:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

John Mastro <john.b.mastro@gmail.com> writes:

> Dejan Jocic <jodejka@gmail.com> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]