I read somewhere the two files were interchangeable, so I cut/paste the content of the former, shown below, to the latter. But then Xreader was missing when I tried to view a document generated by AUCTEX, which tells me they are not interchangeable.
(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. '(TeX-view-program-list (quote
(("Xreader" ("xreader %o") "xreader")))) '(TeX-view-program-selection
(quote
(((output-dvi has-no-display-manager)
"dvi2tty")
((output-dvi style-pstricks)
"dvips and gv")
(output-dvi "xdvi")
(output-pdf "Xreader")
(output-html "xdg-open"))))) (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. ) (put 'upcase-region 'disabled nil)
What are the different purposes of .emacs and .emacs.d/init.el?
UPDATE:
Here's the content of .emacs.d/init.el after the modification discussed above:
(require 'package)
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
(require 'org)
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
(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.
'(TeX-view-program-list (quote (("Xreader" ("xreader %o") "xreader"))))
'(TeX-view-program-selection
(quote
(((output-dvi has-no-display-manager)
"dvi2tty")
((output-dvi style-pstricks)
"dvips and gv")
(output-dvi "xdvi")
(output-pdf "Xreader")
(output-html "xdg-open")))))
(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.
)
(put 'upcase-region 'disabled nil)
~/.emacs
file then~/.emacs.d/init.el
will not be read at all..emacs
to.emacs.d/init.el
and deleted the former, and that does not solve the problem. The suggested post is that from which I got the idea to put init code in the second file./home/er/.emacc
, which is not a file that exists.~/.emacs.d $ echo $PWD
prints/home/er/.emacs.d
. File permissions of either.emacs
and/emacs.d/init.el
are -rw-rw-r--