Re:Emacs standing alone on a Linux Kernel
by influx on Tuesday September 16, 2014 @06:42PM
(#8327527)
Shit, I did that years ago:
[ Parent
| on HN ]
Re:Emacs standing alone on a Linux Kernel
by teddyh on Wednesday September 17, 2014 @04:10AM
(#8329013)
No need to patch the kernel - I did this many years ago (before the age of initramfs) by simply passing “init=/usr/bin/emacs” on the kernel command line (in lilo, which was what was used at the time).
Re:Emacs standing alone on a Linux Kernel
by pyre on Wednesday September 17, 2014 @10:40AM
(#8330198)
lilo: the Linux Loader!
/getoffmylawn
Re:Emacs standing alone on a Linux Kernel
by josefonseca on Tuesday September 16, 2014 @08:59PM
(#8327932)
I did that years ago as well. Soon as I read somewhere that Stallman meant Emacs to be his only shell and do everything in it(?), this was my first thought.
Re:Emacs standing alone on a Linux Kernel
by mike_ivanov on Tuesday September 16, 2014 @07:10PM
(#8327621)
ln -sf /usr/bin/emacs /sbin/init
Re:Emacs standing alone on a Linux Kernel
by scott_karana on Tuesday September 16, 2014 @08:00PM
(#8327778)
Where would you find ln, though? ;)
Re:Emacs standing alone on a Linux Kernel
by daveloyall on Wednesday September 17, 2014 @04:50PM
(#8332287)
make-symbolic-link is an interactive built-in function in `C source
code'.
(make-symbolic-link FILENAME LINKNAME &optional OK-IF-ALREADY-EXISTS)
Make a symbolic link to FILENAME, named LINKNAME.
Both args must be strings.
Signals a `file-already-exists' error if a file LINKNAME already exists
unless optional third argument OK-IF-ALREADY-EXISTS is non-nil.
A number as third arg means request confirmation if LINKNAME already exists.
This happens for interactive use with M-x.
or... dired-do-symlink is an interactive autoloaded compiled Lisp function
in `dired-aux.el'.
(dired-do-symlink &optional ARG)
Make symbolic links to current file or all marked (or next ARG) files.
When operating on just the current file, you specify the new name.
When operating on multiple or marked files, you specify a directory
and new symbolic links are made in that directory
with the same names that the files currently have. The default
suggested for the target directory depends on the value of
`dired-dwim-target', which see.
For relative symlinks, use M-x dired-do-relsymlink.
...It doesn't seem to depend on an external `ln`.
http://git.savannah.gnu.org/cgit/emacs.git/tree/src/fileio.c...
Re:Emacs standing alone on a Linux Kernel
by scott_karana on Wednesday September 17, 2014 @04:58PM
(#8332329)
Nice find! :-)
Re:Emacs standing alone on a Linux Kernel
by digisign on Tuesday September 16, 2014 @08:09PM
(#8327803)
That's pre reboot.