News for hackers. Stuff that matters.
Re:Emacs standing alone on a Linux Kernel by influx on Tuesday September 16, 2014 @06:42PM (#8327527)
Shit, I did that years ago:

  --- main.c Sun Jun 3 22:02:34 2001 
  +++ main.c~ Tue Jul 10 16:05:26 2001 
  @@ -789,9 +789,9 @@
  
  if (execute_command)
  execve(execute_command,argv_init,envp_init); 
  - execve("/sbin/init",argv_init,envp_init); 
  - execve("/etc/init",argv_init,envp_init); 
  - execve("/bin/init",argv_init,envp_init); 
  - execve("/bin/sh",argv_init,envp_init); 
  - panic("No init found. Try passing init= option to kernel."); 
  + execve("/usr/bin/emacs",argv_init,envp_init); 
  + execve("/usr/local/bin/emacs",argv_init,envp_init) ; 
  + execve("/bin/emacs",argv_init,envp_init); 
  + execve("/usr/bin/xemacs",argv_init,envp_init); 
  + panic("No emacs found. Are you sure this is GNU/Linux?");  
  }
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.
Re:Emacs standing alone on a Linux Kernel by pyre on Wednesday September 17, 2014 @10:41AM (#8330205)
Where would you find gcc to patch the kernel? :P
Re:Emacs standing alone on a Linux Kernel by kjs3 on Wednesday September 17, 2014 @12:40PM (#8330870)
Isn't this something almost everyone who got past the "wrote my first elisp macro" stage has done with emacs since the 90s?