[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [External] : Re: text formating
From: |
Drew Adams |
Subject: |
RE: [External] : Re: text formating |
Date: |
Thu, 9 Feb 2023 19:11:54 +0000 |
> I put this in my init.el file
>
> ;;(define-key KEYMAP KEY DEF &optional REMOVE)
> (require "markdown-mode)
> (define-key markdown-mode-map (kbd "C-c a") #'rcd-markdown-preview)
> ........................................................................
> .
> when starting emacs
> the message came up:
>
> Warning (initialization): An error occurred while loading
> ‘/home/gfp/.config/emacs/init.el’:
>
> End of file during parsing: /home/gfp/.config/emacs/init.el
^^^^^^^^^^^^^^^^^^^^^^^^^^
> To ensure normal operation, you should investigate and remove the
> cause of the error in your initialization file. Start Emacs with
> the ‘--debug-init’ option to view a complete error backtrace. Disable
^^^^^^^^^^^^
> showing Disable logging
>
........................................................................
> Did I put it in the right order?
> Or any other mistake?
Yes, right order: load the library, then use it.
Something in your init file doesn't _parse_. Most likely you're missing a
right paren or something. Use `M-x check-parens' in your init file.
You can put (setq debug-on-error t) at the start of your init file, or
customize it to t.
You can start Emacs using the switch --debug-init, as the error msg suggested.
See also
https://www.gnu.org/software/emacs/manual/html_node/elisp/Error-Debugging.html
___
In general, when your init file has a problem, consider _bisecting_ it, to find
the culprit. Bisecting is a binary search - it's fast. You can use `M-x
comment-region` to comment out 1/2, then 1/4, 1/8, 1/16,... of your init file.
With C-u it UNcomments one level of commenting.
- Re: text formating, (continued)
- Re: text formating, Jean Louis, 2023/02/08
- RE: [External] : Re: text formating, Drew Adams, 2023/02/08
- Re: text formating, Gottfried, 2023/02/09
- RE: [External] : Re: text formating, Drew Adams, 2023/02/09
- Re: [External] : Re: text formating, Gottfried, 2023/02/09
- RE: [External] : Re: text formating, Drew Adams, 2023/02/09
- Re: [External] : Re: text formating, Gottfried, 2023/02/09
- Re: [External] : Re: text formating, Jean Louis, 2023/02/09
- RE: [External] : Re: text formating, Drew Adams, 2023/02/09
- Re: [External] : Re: text formating, Jean Louis, 2023/02/11
- RE: [External] : Re: text formating,
Drew Adams <=
- Re: [External] : Re: text formating, Gottfried, 2023/02/11
- Re: [External] : Re: text formating, tomas, 2023/02/11
- Re: [External] : Re: text formating, Jean Louis, 2023/02/11
- RE: [External] : Re: text formating, Drew Adams, 2023/02/11