- 0 Posts
- 22 Comments
00-11@alien.topBto Emacs@communick.news•just started using emacs elisp guide for beginners?English1·2 years agoLearn Emacs Lisp on Emacs Wiki.
Do you see the problem when you start Emacs with
emacs -Q
?Check your value of option
default-frame-alist
…
Is there a easy way to use emacs ?
Yes. Start it and type
C-h t
. Follow the simple tutorial directions.
00-11@alien.topBto Emacs@communick.news•ISEARCH tips, settings, options and uses (Advanced Topic)English1·2 years agoA couple of the Isearch+ features that let you limit the search space/context.
-
You can limit isearching to the text in the region. Controlled by a user option, and can be toggled with
C-x n during Isearch
. Works also for a noncontiguous region, such as a rectangle. -
You can switch any time to isearching outside, instead of inside, the region.
-
You can search within/without the zones of text defined by the lazy-highlight matches of a previous search.
Or search within/without the zones of text that have a certain text property or set of properties (optionally considering their values) – any properties.
- Dynamic Isearch filtering: add/remove any number of search filters while isearching.
-
+1.
-
+1 for the Abelson & Sussman lecture(s).
-
Plus links at Emacs Wiki Learn Emacs Lisp
-
00-11@alien.topBto Emacs@communick.news•dired+ causes pdf-tools to freeze emacs on large pdfsEnglish1·2 years agoAs I said, please follow up off list, using
M-x diredp-send-bug-report
. You haven’t even mentioned your platform etc.One quick thing to try would be to evaluate this, to see if the extra font-locking is the problem:
(remove-hook 'dired-mode-hook 'diredp--set-up-font-locking)
.
00-11@alien.topBto Emacs@communick.news•dired+ causes pdf-tools to freeze emacs on large pdfsEnglish1·2 years agoKeep investigating. (I assume the problem doesn’t arise with just Helm and PDF-tools (i.e., without Dired+).)
00-11@alien.topBto Emacs@communick.news•dired+ causes pdf-tools to freeze emacs on large pdfsEnglish1·2 years agod
in the debugger steps into evaluating the current sexp to be evaluated.c
steps past it, i.e., it evaluates it without digging into the steps of evaluating it.So you can use
c
to skip over steps that you don’t want to get into in to detail, and used
otherwise.
00-11@alien.topBto Emacs@communick.news•dired+ causes pdf-tools to freeze emacs on large pdfsEnglish1·2 years agoSo the problem is apparently not with Dired+'s
dired-jump
, but something else in Dired+. But if you can repro the problem easily usingdired-jump
, maybe tryM-x debug-on-entry dired-jump
and step through the debugger to see what seems to be the problem - withemacs -Q
and just Dired+ and PDF-tools loaded. But instead of trying to debug it here,M-x diredp-send-bug-report
, as mentioned above.
00-11@alien.topBto Emacs@communick.news•Emacs is inconsistent when clicking buttons with the mouseEnglish1·2 years agoBisect your init file. You can use command
comment-region
comment out 1/2 of it, then 3/4, then 7/8,… till you can see easily what’s causing the problem. This is a binary search, so it narrows things down quickly.
00-11@alien.topBto Emacs@communick.news•Emacs is inconsistent when clicking buttons with the mouseEnglish2·2 years agoDo you see the same problem if you start Emacs using
emacs -Q
(no init file)? If not, bisect your init file to find the culprit.
00-11@alien.topBto Emacs@communick.news•dired+ causes pdf-tools to freeze emacs on large pdfsEnglish1·2 years agoTry commenting out the definition of
dired-jump
in dired+.el, and see if that makes a difference. (The main difference is that the Dired+ version opens the directory listing with the destination, it it’s hidden.)Then
M-x diredp-send-bug-report
. Provide your Emacs release, platform etc. info, and preferably a recipe starting fromemacs -Q
. Thx.Maybe check also with the pdf-tools maintainer.
00-11@alien.topBto Emacs@communick.news•What are the greatest Emacs tips for a beginner? |EMACS IDE/ NOTE-TAKING APPLICATION|.English1·2 years agoLearn to Ask Emacs. Use the Help menu in the menu-bar - get to know it well. Learn the help commands on prefix key
C-h
, includingC-h r
, which takes you to the Emacs manual, andC-h S
, which looks up a symbol (word) in that manual.Learn how to create and use keyboard macros. Over time, learn some Elisp, which is the golden key to asking Emacs.
Just an observation.
In the responses to the question here, there is close to zero actual comparison of Doom and Spacemacs features or behavior, or mention of specific benefits of one or the other.
Most of the response content is essentially voting - rooting for the colors of one team or the other. Maybe OP finds that that helps somehow; maybe not. (If it does, what a pity.)
Dunno what this indicates. Maybe it says something about Reddit, or about the nature of such questions, or about Doom and Spacemacs fans?
I really don’t know. Just a weightless observation. And maybe after I write this it’ll (hopefully) be proven wrong.
Just an observation.
In the responses to the question here, there is close to zero actual comparison of Doom and Spacemacs features or behavior, or mention of specific benefits of one or the other.
Most of the response content is essentially voting - rooting for the colors of one team or the other. Maybe OP finds that that helps somehow; maybe not. (If it does, what a pity.)
Dunno what this indicates. Maybe it says something about Reddit, or about the nature of such questions, or about Doom and Spacemacs fans?
I really don’t know. Just a weightless observation. And maybe after I write this it’ll (hopefully) be proven wrong.
00-11@alien.topBto Emacs@communick.news•(Updated) best practices for avoiding loss of work?English1·2 years agoAt first I thought this was going to be about the very useful and delightful topic of “Best practices for avoiding work.”
My inner Maynard G. Krebs jumped up to say “Work?!”.
00-11@alien.topBto Emacs@communick.news•How do you quickly navigate inside a source file using emacs ?English1·2 years agoHere are some ways to move around. The first two are in vanilla Emacs. (There are
previous
functions corresponding to thenext
functions mentioned.)-
C-M-e
andC-M-a
: Move to next “defun” (function definition). -
Imenu, if you know the name of the thing (e.g. a definition) you`re looking for. (Various libraries let you complete/filter and cycle among candidates.)
-
next-visible-thing
. Moves to end of next THING. First nonconsecutive use prompts for THING type. Or usenext-visible-thing
to define such a command for a specific kind of THING (so no prompt needed for the kind).Requires library
thing-cmds.el
, which requireshide-comnt.el
.Predefined THINGS (library
thingatpt+.el
needed for some):sexp, button, char, char-same-line, color, comment, decimal-number, defun, email, filename, hex-number, line, list, list-contents, non-nil-symbol-name, number, overlay, page, paragraph, region-or-word, sentence, string, string-contents, symbol, symbol-name, unquoted-list, url, whitespace, whitespace-&-newlines, word
“Visible” means invisible text is skipped. Option
ignore-comments-flag
controls whether to also ignore text in comments. -
Command
fw-to-next-thing
. Moves to the start of the next THING (unlikenext-visible-thing
, which moves to its end).Requires libraries
find-where.el
andthingatpt+.el
needed for some).Library
find-where.el
lets you get something at a position where an arbitrary predicate is true (not just a position at the start of a text THING), or move to such a position.E.g., function
fw-next-thing
returns the next THING and its position, and commandfw-to-next-thing
goes there.E.g., this defines a command to move to the beginning of the next sexp:
(defun to-next-sexp (n) "Go to next start of a sexp." (interactive "p") (fw-to-next-thing 'sexp nil n))
Likewise, for
fw-next-where
andfw-to-next-where
, which look for the next place and some data where some predicate is satisfied.See the Commentary in
find-where.el
. -
Commands in library
isearch-prop.el
to search within the text of certain things.E.g.,
isearchp-imenu-non-interactive-function
searches only within (or only outside of) definitions of functions that are not commands.isearch-property-forward
searches only within text that has (or doesn’t have) a given text or overlay property.isearchp-zones-forward
searches only within (or only outside) the text of a given set of zones (i.e., within a noncontiguous region). -
The old library
hideif.el
lets you hide text that’s withinifdef
s.
https://www.emacswiki.org/emacs/download/thing-cmds.el
https://www.emacswiki.org/emacs/download/hide-comnt.el
https://www.emacswiki.org/emacs/download/find-where.el
-
FWIW, setting something to
#f
in Emacs Lisp means you’re setting it to TRUE, not FALSE. Elisp is not Scheme.