Re: Developing environments used for kernel development

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2016-01-13 21:23 GMT-03:00 Ismael Luceno <ismael.luceno@xxxxxxxxx>:
> On Thu, Dec 24, 2015 at 11:57:32AM -0200, Daniel. wrote:
>> I had heard about emacs server, but never tried it.. This should fix the
>> starting time, but not the learning curve :)
>
> You can wrap emacsclient to automatically start emacs --daemon with a
> script like this:
>
>     #!/bin/sh
>     exec emacsclient -a '' -c "$@"
>
> You may also want to pre-compile your elisp files.

Themes may not load correctly when using emacs as daemon. But you can
fix (tweak) it with

;; theme
(defvar my:theme 'distinguished)
(defvar my:theme-window-loaded nil)
(defvar my:theme-terminal-loaded nil)

(if (daemonp)
    (add-hook 'after-make-frame-functions(lambda (frame)
                       (select-frame frame)
                       (if (window-system frame)
                           (unless my:theme-window-loaded
                         (if my:theme-terminal-loaded
                             (enable-theme my:theme)
                           (load-theme my:theme t))
                         (setq my:theme-window-loaded t))
                         (unless my:theme-terminal-loaded
                           (if my:theme-window-loaded
                           (enable-theme my:theme)
                         (load-theme my:theme t))
                           (setq my:theme-terminal-loaded t)))))
  (progn
    (load-theme my:theme t)
    (if (display-graphic-p)
    (setq my:theme-window-loaded t)
      (setq my:theme-terminal-loaded t))))

> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



-- 
Regards,

Geyslan G. Bem
hackingbits.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux