Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7796931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:31:25+00:00 2026-06-01T23:31:25+00:00

I put each type emacs settings into some single files, like load-cygwin.el, load-cedet.el etc.

  • 0

I put each type emacs settings into some single files, like load-cygwin.el, load-cedet.el etc. And use a subverion to share them everywhere and everytime.

Now for load-cygwin.el, it’s only need on Windows platform, but every-time I sync these configurations in Linux platform, I have to remove them.

How could the emacs not load the load-cygwin.el file while initializing? I need some conditions to jump out the file?

thanks.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:31:26+00:00Added an answer on June 1, 2026 at 11:31 pm

    There are different ways to deal with it. One way (which I use)

    I assagin a name for each system based on the hostname. (you can also define checking window system/emacs vesrion/OS and so on..)

     ;;;;;;;;;;;;;;  define systems ;;;;;;;;;;;;;;;;
    
     (defvar on-laptop          ; on my laptop, mostly I can run everything
       (string-match "rag" (system-name)))
    
     (defvar on-lab-computer                 ; main lab desktop
       (string-match "okho" (system-name)))
    
     (defvar on-lab-server        ; lab cluster
       (string-match "amu" (system-name)))
    
    
     ;;;;;;;;;;;;;;; Usage ;;;;;;;;;;;;;;;;;;;;;;;;;
     (when on-laptop
     ;;; music / emms config
       (load "emms-config.el"))
    
    
     ; load work related stuff
     (when on-lab-computer
       ;; load work related
    
        )
    
    
     (when (not on-lab-server)
       ;;; some setup that are unnecessary on cluster, but useful on remaining systems
    
       )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use ZipInputStream to put each file inside the archive in
I would like to put a time & date stamp on each row added
How do I put centered textboxes inside each of the colored boxes in the
I have put 4 image for each folder mdpi,ldpi,hdpi,xdpi in the ratio of 3:4:6:8.
Bing maps currently simplifies each polygon shape that gets put on the map. While
I can put python doctests in the bodies of each function, which I sometimes
I am trying to put two scatter plots next to each other with a
Put simply, I want to select all data in two columns from each of
Lets put the case that we've got two separate classes, each owns a mysqli
I want an ASP:NET WebForms Repeater control to put an index next to each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.