From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Size of startup files
Date: Tue, 22 Nov 2022 00:10:55 +0100 [thread overview]
Message-ID: <8735abj43k.fsf@dataswamp.org> (raw)
In-Reply-To: jwv7czom0on.fsf-monnier+emacs@gnu.org
Stefan Monnier via Users list for the GNU Emacs text editor wrote:
>> I just took a quick look and found that my startup files
>> (called from .emacs and so on) amount to about 5,000 lines
>> of elisp. Of course I comment extensively but at least half
>> of this or more is actual code.
>
> My init file never reached that size: I think around the time it was
> inching its way toward 2k lines
I have 9 317 lines in 165 files ...
> I decided I should change Emacs instead. So in a sense, my
> init file is now somewhere around 2M lines :-(
On the contrary, that's good for all of us!
But on the whole, it is not a sane situation. What we should
have is a set of libraries that have very basic and
self-explicatory names, then it would be so easy to find out
if some functionality is already available - and if not, where
to add it ...
For example, I'd like to have a math library for thing like
the blow Elisp, which I have in my own Elisp at the moment ...
(defalias '** #'expt)
(defalias 'ceil #'ceiling)
(defun // (nom denom)
(/ nom denom 1.0) )
;; (/ 8 256) ; 0 *oups*
;; (// 8 256) ; 0.03125
(defun mean-value (vs)
(let*((sum (apply #'+ vs))
(mean (/ sum (length vs) 1.0)) )
mean) )
(defun percent (nom &optional denom str)
(or denom (setq denom 1))
(let ((perc (/ nom denom 0.01)))
(if str
(format "%.1f%%" perc)
perc)))
;; (percent 0.25) ; 25.0
;; (percent 50 75) ; 66.66 ...
;; (percent (// 1 2) nil t) ; 50.0%
;; (percent 1019 22 t) ; 4631.8%
--
underground experts united
https://dataswamp.org/~incal
next prev parent reply other threads:[~2022-11-21 23:10 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-20 19:42 Size of startup files Bob Newell
2022-11-20 20:24 ` Colin Baxter
2022-11-21 21:52 ` Bob Newell
2022-11-22 10:00 ` Eric S Fraga
2022-11-20 22:07 ` Rudolf Adamkovič
2022-11-21 0:46 ` Samuel Wales
2022-11-21 9:37 ` Eric S Fraga
2022-11-21 22:00 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-11-21 23:10 ` Emanuel Berg [this message]
2022-11-22 7:02 ` Pankaj Jangid
2022-11-22 11:45 ` Jean Louis
2022-11-22 14:34 ` M-x toggle-theme Jean Louis
2022-11-22 16:59 ` Philip Kaludercic
2022-11-22 17:48 ` Akib Azmain Turja
2022-11-22 18:08 ` Philip Kaludercic
2022-11-23 10:54 ` libraries (was: Re: Size of startup files) Emanuel Berg
2022-11-21 23:20 ` Size of startup files Emanuel Berg
2022-11-22 10:44 ` Marcin Borkowski
2022-11-22 14:45 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8735abj43k.fsf@dataswamp.org \
--to=incal@dataswamp.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.